Author |
Message |
damatta Brekeke Master Guru
Joined: 07 Oct 2005 Posts: 227
Location: Brazil
|
Posted: Tue Sep 14, 2010 7:54 pm Post subject: Modify URI |
|
|
1. Brekeke Product Name and version: BSS Version 2.2.6.2
2. Java version: 1.5.0_14
3. OS type and the version: Windows 2003
4. UA (phone), gateway or other hardware/software involved: X-Lite
5. Select your network pattern from http://www.brekeke-sip.com/bbs/network/networkpatterns.html : 8
6. Your problem:
Would like to strip '55' from 'From' field . Already tried to use below dialplan w/o success:
Matching Patterns | $request = ^INVITE $addr = ^192\.168\.200\.254 To = sip:11077611562@ $geturi(From) = sip:55(.+)@
|
Deploy Patterns | $replaceuri = true From = sip:%1@192.168.200.254 $target = sip.example.net To = sip:8008880102@sip.example.net $auth = false
|
Any help deeply appreciated. |
|
Back to top |
|
taitan Brekeke Master Guru
Joined: 15 Mar 2008 Posts: 237
|
Posted: Wed Sep 15, 2010 5:59 pm Post subject: |
|
|
do you have any other DialPlan rules?
If so put the above rule in the top.
Does the SIP server forward a call to sip.example.net successfully? |
|
Back to top |
|
damatta Brekeke Master Guru
Joined: 07 Oct 2005 Posts: 227
Location: Brazil
|
Posted: Thu Sep 16, 2010 2:51 am Post subject: |
|
|
Yes calls are being fowarded sucessfully but no URI modification. |
|
Back to top |
|
taitan Brekeke Master Guru
Joined: 15 Mar 2008 Posts: 237
|
Posted: Thu Sep 16, 2010 10:53 am Post subject: |
|
|
it seems you are using a kind of old version...
I recommend you use the latest one.
anyway.. let you put "$replaceuri = true" in the DeployPatten.
I hope it solves your problem. |
|
Back to top |
|
taitan Brekeke Master Guru
Joined: 15 Mar 2008 Posts: 237
|
Posted: Thu Sep 16, 2010 10:55 am Post subject: |
|
|
I think.. newer versions (2.4.x) don't have such a problem. |
|
Back to top |
|
damatta Brekeke Master Guru
Joined: 07 Oct 2005 Posts: 227
Location: Brazil
|
Posted: Thu Sep 16, 2010 11:24 am Post subject: |
|
|
"$replaceuri = true" is in the DeployPatten already. |
|
Back to top |
|
janP Brekeke Master Guru
Joined: 25 Nov 2007 Posts: 336
|
Posted: Mon Sep 20, 2010 12:34 pm Post subject: |
|
|
the version 2.2 may not meet your requirement..
try 2.4. |
|
Back to top |
|
damatta Brekeke Master Guru
Joined: 07 Oct 2005 Posts: 227
Location: Brazil
|
Posted: Wed Sep 22, 2010 7:40 am Post subject: |
|
|
Tried with version 2.4.7.0 w/o success either |
|
Back to top |
|
hope Brekeke Master Guru
Joined: 15 Jan 2008 Posts: 862
|
Posted: Wed Sep 22, 2010 10:17 am Post subject: |
|
|
is the dial plan in use for the call?
is the dial plan name shown at "active sessions"/this calll details/rule?
are you going to change callerID?
if so, set From in deploy pattern as
From = "%1"<sip:%1@192.168.200.254> |
|
Back to top |
|
damatta Brekeke Master Guru
Joined: 07 Oct 2005 Posts: 227
Location: Brazil
|
Posted: Wed Sep 22, 2010 10:41 am Post subject: |
|
|
No success either... |
|
Back to top |
|
james Brekeke Master Guru
Joined: 10 Dec 2007 Posts: 501
|
Posted: Thu Sep 23, 2010 12:46 pm Post subject: |
|
|
I don't have same issue.
I think your other rules or the provider cause the problem..
Can you paste all of your rules here?
Otherwise, let you contact Brekeke's support team |
|
Back to top |
|
damatta Brekeke Master Guru
Joined: 07 Oct 2005 Posts: 227
Location: Brazil
|
Posted: Thu Sep 23, 2010 2:06 pm Post subject: |
|
|
Running a test proxy just to work on this so, there are no other rules. |
|
Back to top |
|
hope Brekeke Master Guru
Joined: 15 Jan 2008 Posts: 862
|
Posted: Fri Sep 24, 2010 1:55 pm Post subject: |
|
|
did you click "apply rule" button?
Capture packets with wireshark on sip server pc,
check if the From is changed in the INVITE sent from brekeke to sip.example.net |
|
Back to top |
|
damatta Brekeke Master Guru
Joined: 07 Oct 2005 Posts: 227
Location: Brazil
|
Posted: Sat Sep 25, 2010 2:41 pm Post subject: |
|
|
Analysing captured packets we noticed that indeed 'from' field was successfully modified but what we really need to modify is 'remote party-id' field. Sorry for the mistake and thanks for help. |
|
Back to top |
|
james Brekeke Master Guru
Joined: 10 Dec 2007 Posts: 501
|
Posted: Mon Sep 27, 2010 10:16 am Post subject: |
|
|
so.. did you modify 'Remote-Party-ID' successfully? |
|
Back to top |
|
damatta Brekeke Master Guru
Joined: 07 Oct 2005 Posts: 227
Location: Brazil
|
Posted: Mon Sep 27, 2010 10:33 am Post subject: |
|
|
Not at all. Just 'From' field. Please inform how to modify it successfully. Thanks. |
|
Back to top |
|
hope Brekeke Master Guru
Joined: 15 Jan 2008 Posts: 862
|
Posted: Mon Sep 27, 2010 12:41 pm Post subject: |
|
|
how about set Remote-Party-ID in dial plan deploy patterns?
like:
Remote-Party-ID = sip:%1@192.168.200.254 |
|
Back to top |
|
damatta Brekeke Master Guru
Joined: 07 Oct 2005 Posts: 227
Location: Brazil
|
Posted: Mon Sep 27, 2010 1:38 pm Post subject: |
|
|
Solved, many thanks |
|
Back to top |
|
|