Forums Read-only archive

Modify URI

18 posts · Brekeke SIP Server Forum

damatta Original post
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/ ... terns.html : 8

6. Your problem:

Would like to strip '55' from 'From' field . Already tried to use below dialplan w/o success:

MATCHING PATTERN

$request=^INVITE
$addr=^192\.168\.200\.254
To=sip:11077611562@
$geturi(From)=sip:55(.+)@

DEPLOY PATTERN

$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.
taitan
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?
damatta
Yes calls are being fowarded sucessfully but no URI modification.
taitan
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.
taitan
I think.. newer versions (2.4.x) don't have such a problem.
damatta
"$replaceuri = true" is in the DeployPatten already.
janP
the version 2.2 may not meet your requirement..
try 2.4.
damatta
Tried with version 2.4.7.0 w/o success either :(
hope
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>
damatta
No success either...
james
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
damatta
Running a test proxy just to work on this so, there are no other rules.
hope
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
damatta
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.
james
so.. did you modify 'Remote-Party-ID' successfully?
damatta
Not at all. Just 'From' field. Please inform how to modify it successfully. Thanks.
hope
how about set Remote-Party-ID in dial plan deploy patterns?
like:
Remote-Party-ID = sip:%1@192.168.200.254
damatta
Solved, many thanks :D