change the FROM to match the Remote-Party-ID

Discuss any topic about Brekeke SIP Server.

Moderator: Brekeke Support Team

Post Reply
Izzyg
Posts: 91
Joined: Tue Jun 25, 2013 1:14 pm
Location: Sip Land

change the FROM to match the Remote-Party-ID

Post by Izzyg »

1. Brekeke Product Name and Version:
server-product Brekeke SIP Server
server-ver 2.4.8.6/286.3

2. Java version:
1.7.0_25

3. OS type and the version:
os-name Windows Server 2008 R2
os-ver 6.1

4. UA (phone), gateway or other hardware/software involved:

5. Your problem:

Id like to set a dial plan so it takes the Remote-Party-ID and Deploys the FROM have that info

here is what i did so far and it doesnt work


Matching Patterns:
$request=^INVITE
From=sip:.+@voip1.pbx.com
Remote-Party-ID=(.+)@
To=sip:(.+)@
$addr=173.200.100.10


Deploy Pattern:
$auth=false
Remote-Party-ID=%1
Contact=%1
From=%1
To=sip:%2@205.100.100.10
$session=failover sip:%2@205.100.100.10 sip:%2@205.100.100.20
&failover.timer.inviting=5
&failover.timer.provisional=360
$continue=false
Tata
Posts: 223
Joined: Sun Jan 27, 2008 1:03 pm

Post by Tata »

I hope it works..

[Matching Patterns]
$request = ^INVITE
From = sip:.+@voip1.pbx.com
Remote-Party-ID = sip:(.+)@
To = sip:(.+)@
$getUri(From) = @(.+)
$addr = 173.200.100.10

[Deploy Patterns]
$auth = false
From = sip:%1@%3
To = sip:%2@205.100.100.10
$session = failover sip:%2@205.100.100.10 sip:%2@205.100.100.20
&failover.timer.inviting = 5
&failover.timer.provisional = 360
Izzyg
Posts: 91
Joined: Tue Jun 25, 2013 1:14 pm
Location: Sip Land

Post by Izzyg »

here is the setup

my PBX sends the calls to the Brekeke to make the calls

i want to setup that when the brekeke processes the calls, it should replace the "FROM" when it does the DEPLOY, to use the info that came in on the "Remote-Party-ID" in the MATCHING patterm

anyone have any ideas how to handle this
james
Posts: 501
Joined: Mon Dec 10, 2007 12:56 pm

Post by james »

Have you tried Tata's rule?

It seems the DialPlan rule meets the requirement.
If not, explain clearly.
Izzyg
Posts: 91
Joined: Tue Jun 25, 2013 1:14 pm
Location: Sip Land

Post by Izzyg »

nope it isnt working

this is what i have and its not working


Matching Patterns:
$request=^INVITE
From=sip:.+@pbx.voip1.com
Remote-Party-ID=(.+)@
To=sip:(.+)@
$getUri(From)=@(.+)
$addr=10.0.12.152


Deploy Pattern:
$auth=false
From=sip:%1@%3
To=sip:%2@72.15.10.10
$continue=false
hope
Posts: 862
Joined: Tue Jan 15, 2008 4:08 pm

Post by hope »

in line Remote-Party-ID=(.+)@,
there is no sip: before (.+)@ ?
like Remote-Party-ID=sip:(.+)@

you can try by put this rule on top of all other rules and also set

net.listener.loglevel.file=255
net.sip.loglevel.file=255
dialplan.debug.log = true

in "Advanced" page

then check sv log to see what the incoming call invite is like and if it has applied to this rule.
if not apply, check which part get false return and change it in the rule to make call apply to the rule.
Izzyg
Posts: 91
Joined: Tue Jun 25, 2013 1:14 pm
Location: Sip Land

Post by Izzyg »

Where will i find the logs ?
hope
Posts: 862
Joined: Tue Jan 15, 2008 4:08 pm

Post by hope »

Izzyg
Posts: 91
Joined: Tue Jun 25, 2013 1:14 pm
Location: Sip Land

Post by Izzyg »

Seems like this is working,, but i need some help with tweaking it, i want to add in the matching pattern only to use this dial plan if the call is going to 1-212-555-1212


Matching Pattern:
$request=^INVITE
From=sip:(.+)voip1.pbx.com.com
Remote-Party-ID=sip:(.+)@
To=sip:(.+)@
$getUri(From)=@(.+)
$addr=10.0.12.152


Deploy Pattern:
$auth=false
From=sip:1%2@%4
Remote-Party-ID=<sip:1%2@%4>
To=sip:%3@72.15.88.88
$continue=false
hope
Posts: 862
Joined: Tue Jan 15, 2008 4:08 pm

Post by hope »

Matching Pattern:
$addr=10.0.12.152
$request=^INVITE
From=sip:(.+)voip1.pbx.com.com
Remote-Party-ID=sip:(.+)@
To=sip:(12125551212)@
$getUri(From)=@(.+)
Post Reply