Brekeke Forum Index » Brekeke SIP Server Forum

Post new topic   Reply to topic
change the FROM to match the Remote-Party-ID
Author Message
Izzyg
Brekeke Talented


Joined: 25 Jun 2013
Posts: 91
Location: Sip Land

PostPosted: Mon Nov 18, 2013 2:50 pm    Post subject: change the FROM to match the Remote-Party-ID Reply with quote

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 Patterns
$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
Back to top
View user's profile
Tata
Brekeke Master Guru


Joined: 27 Jan 2008
Posts: 223

PostPosted: Mon Nov 18, 2013 5:09 pm    Post subject: Reply with quote

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
Back to top
View user's profile
Izzyg
Brekeke Talented


Joined: 25 Jun 2013
Posts: 91
Location: Sip Land

PostPosted: Tue Dec 24, 2013 10:16 am    Post subject: Reply with quote

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
Back to top
View user's profile
james
Brekeke Master Guru


Joined: 10 Dec 2007
Posts: 498

PostPosted: Sun Jan 05, 2014 1:55 am    Post subject: Reply with quote

Have you tried Tata's rule?

It seems the DialPlan rule meets the requirement.
If not, explain clearly.
Back to top
View user's profile
Izzyg
Brekeke Talented


Joined: 25 Jun 2013
Posts: 91
Location: Sip Land

PostPosted: Sat Feb 08, 2014 4:58 pm    Post subject: Reply with quote

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 Patterns
$auth = false
From = sip:%1@%3
To = sip:%2@72.15.10.10
$continue = false
Back to top
View user's profile
hope
Brekeke Master Guru


Joined: 15 Jan 2008
Posts: 862

PostPosted: Sat Feb 08, 2014 5:40 pm    Post subject: Reply with quote

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.
Back to top
View user's profile
Izzyg
Brekeke Talented


Joined: 25 Jun 2013
Posts: 91
Location: Sip Land

PostPosted: Sat Feb 08, 2014 5:57 pm    Post subject: Reply with quote

Where will i find the logs ?
Back to top
View user's profile
hope
Brekeke Master Guru


Joined: 15 Jan 2008
Posts: 862

PostPosted: Sun Feb 09, 2014 1:57 pm    Post subject: Reply with quote

http://wiki.brekeke.com/wiki/log-SIP-packets
Back to top
View user's profile
Izzyg
Brekeke Talented


Joined: 25 Jun 2013
Posts: 91
Location: Sip Land

PostPosted: Sun Feb 09, 2014 2:39 pm    Post subject: Reply with quote

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 Patterns
$request = ^INVITE
From = sip:(.+)voip1.pbx.com.com
Remote-Party-ID = sip:(.+)@
To = sip:(.+)@
$getUri(From) = @(.+)
$addr = 10.0.12.152


Deploy Patterns
$auth = false
From = sip:1%2@%4
Remote-Party-ID = <sip:1%2@%4>
To = sip:%3@72.15.88.88
$continue = false
Back to top
View user's profile
hope
Brekeke Master Guru


Joined: 15 Jan 2008
Posts: 862

PostPosted: Sun Feb 09, 2014 7:56 pm    Post subject: Reply with quote


Matching Patterns
$addr = 10.0.12.152
$request = ^INVITE
From = sip:(.+)voip1.pbx.com.com
Remote-Party-ID = sip:(.+)@
To = sip:(12125551212)@
$getUri(From) = @(.+)
Back to top
View user's profile
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