Modify URI

Discuss any topic about Brekeke SIP Server.

Moderator: Brekeke Support Team

Post Reply
damatta
Posts: 227
Joined: Fri Oct 07, 2005 5:28 am
Location: Brazil

Modify URI

Post by damatta »

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
Posts: 237
Joined: Sat Mar 15, 2008 10:39 pm

Post by 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
Posts: 227
Joined: Fri Oct 07, 2005 5:28 am
Location: Brazil

Post by damatta »

Yes calls are being fowarded sucessfully but no URI modification.
taitan
Posts: 237
Joined: Sat Mar 15, 2008 10:39 pm

Post by 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
Posts: 237
Joined: Sat Mar 15, 2008 10:39 pm

Post by taitan »

I think.. newer versions (2.4.x) don't have such a problem.
damatta
Posts: 227
Joined: Fri Oct 07, 2005 5:28 am
Location: Brazil

Post by damatta »

"$replaceuri = true" is in the DeployPatten already.
janP
Posts: 336
Joined: Sun Nov 25, 2007 2:55 pm

Post by janP »

the version 2.2 may not meet your requirement..
try 2.4.
damatta
Posts: 227
Joined: Fri Oct 07, 2005 5:28 am
Location: Brazil

Post by damatta »

Tried with version 2.4.7.0 w/o success either :(
hope
Posts: 862
Joined: Tue Jan 15, 2008 4:08 pm

Post by 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
Posts: 227
Joined: Fri Oct 07, 2005 5:28 am
Location: Brazil

Post by damatta »

No success either...
james
Posts: 501
Joined: Mon Dec 10, 2007 12:56 pm

Post by 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
Posts: 227
Joined: Fri Oct 07, 2005 5:28 am
Location: Brazil

Post by damatta »

Running a test proxy just to work on this so, there are no other rules.
hope
Posts: 862
Joined: Tue Jan 15, 2008 4:08 pm

Post by 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
Posts: 227
Joined: Fri Oct 07, 2005 5:28 am
Location: Brazil

Post by 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
Posts: 501
Joined: Mon Dec 10, 2007 12:56 pm

Post by james »

so.. did you modify 'Remote-Party-ID' successfully?
damatta
Posts: 227
Joined: Fri Oct 07, 2005 5:28 am
Location: Brazil

Post by damatta »

Not at all. Just 'From' field. Please inform how to modify it successfully. Thanks.
hope
Posts: 862
Joined: Tue Jan 15, 2008 4:08 pm

Post by hope »

how about set Remote-Party-ID in dial plan deploy patterns?
like:
Remote-Party-ID = sip:%1@192.168.200.254
damatta
Posts: 227
Joined: Fri Oct 07, 2005 5:28 am
Location: Brazil

Post by damatta »

Solved, many thanks :D
Post Reply