Brekeke Forum Index » Brekeke SIP Server Forum

Post new topic   Reply to topic
Modify URI
Author Message
damatta
Brekeke Master Guru


Joined: 07 Oct 2005
Posts: 227
Location: Brazil

PostPosted: Tue Sep 14, 2010 7:54 pm    Post subject: Modify URI Reply with quote

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
View user's profile Yahoo Messenger MSN Messenger
taitan
Brekeke Master Guru


Joined: 15 Mar 2008
Posts: 237

PostPosted: Wed Sep 15, 2010 5:59 pm    Post subject: Reply with quote

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
View user's profile
damatta
Brekeke Master Guru


Joined: 07 Oct 2005
Posts: 227
Location: Brazil

PostPosted: Thu Sep 16, 2010 2:51 am    Post subject: Reply with quote

Yes calls are being fowarded sucessfully but no URI modification.
Back to top
View user's profile Yahoo Messenger MSN Messenger
taitan
Brekeke Master Guru


Joined: 15 Mar 2008
Posts: 237

PostPosted: Thu Sep 16, 2010 10:53 am    Post subject: Reply with quote

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
View user's profile
taitan
Brekeke Master Guru


Joined: 15 Mar 2008
Posts: 237

PostPosted: Thu Sep 16, 2010 10:55 am    Post subject: Reply with quote

I think.. newer versions (2.4.x) don't have such a problem.
Back to top
View user's profile
damatta
Brekeke Master Guru


Joined: 07 Oct 2005
Posts: 227
Location: Brazil

PostPosted: Thu Sep 16, 2010 11:24 am    Post subject: Reply with quote

"$replaceuri = true" is in the DeployPatten already.
Back to top
View user's profile Yahoo Messenger MSN Messenger
janP
Brekeke Master Guru


Joined: 25 Nov 2007
Posts: 336

PostPosted: Mon Sep 20, 2010 12:34 pm    Post subject: Reply with quote

the version 2.2 may not meet your requirement..
try 2.4.
Back to top
View user's profile
damatta
Brekeke Master Guru


Joined: 07 Oct 2005
Posts: 227
Location: Brazil

PostPosted: Wed Sep 22, 2010 7:40 am    Post subject: Reply with quote

Tried with version 2.4.7.0 w/o success either Sad
Back to top
View user's profile Yahoo Messenger MSN Messenger
hope
Brekeke Master Guru


Joined: 15 Jan 2008
Posts: 862

PostPosted: Wed Sep 22, 2010 10:17 am    Post subject: Reply with quote

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
View user's profile
damatta
Brekeke Master Guru


Joined: 07 Oct 2005
Posts: 227
Location: Brazil

PostPosted: Wed Sep 22, 2010 10:41 am    Post subject: Reply with quote

No success either...
Back to top
View user's profile Yahoo Messenger MSN Messenger
james
Brekeke Master Guru


Joined: 10 Dec 2007
Posts: 494

PostPosted: Thu Sep 23, 2010 12:46 pm    Post subject: Reply with quote

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
View user's profile
damatta
Brekeke Master Guru


Joined: 07 Oct 2005
Posts: 227
Location: Brazil

PostPosted: Thu Sep 23, 2010 2:06 pm    Post subject: Reply with quote

Running a test proxy just to work on this so, there are no other rules.
Back to top
View user's profile Yahoo Messenger MSN Messenger
hope
Brekeke Master Guru


Joined: 15 Jan 2008
Posts: 862

PostPosted: Fri Sep 24, 2010 1:55 pm    Post subject: Reply with quote

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
View user's profile
damatta
Brekeke Master Guru


Joined: 07 Oct 2005
Posts: 227
Location: Brazil

PostPosted: Sat Sep 25, 2010 2:41 pm    Post subject: Reply with quote

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
View user's profile Yahoo Messenger MSN Messenger
james
Brekeke Master Guru


Joined: 10 Dec 2007
Posts: 494

PostPosted: Mon Sep 27, 2010 10:16 am    Post subject: Reply with quote

so.. did you modify 'Remote-Party-ID' successfully?
Back to top
View user's profile
damatta
Brekeke Master Guru


Joined: 07 Oct 2005
Posts: 227
Location: Brazil

PostPosted: Mon Sep 27, 2010 10:33 am    Post subject: Reply with quote

Not at all. Just 'From' field. Please inform how to modify it successfully. Thanks.
Back to top
View user's profile Yahoo Messenger MSN Messenger
hope
Brekeke Master Guru


Joined: 15 Jan 2008
Posts: 862

PostPosted: Mon Sep 27, 2010 12:41 pm    Post subject: Reply with quote

how about set Remote-Party-ID in dial plan deploy patterns?
like:
Remote-Party-ID = sip:%1@192.168.200.254
Back to top
View user's profile
damatta
Brekeke Master Guru


Joined: 07 Oct 2005
Posts: 227
Location: Brazil

PostPosted: Mon Sep 27, 2010 1:38 pm    Post subject: Reply with quote

Solved, many thanks Very Happy
Back to top
View user's profile Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Brekeke Forum Index » Brekeke SIP Server Forum All times are GMT - 7 Hours
Page 1 of 1