Author |
Message |
Izzyg Brekeke Talented
Joined: 25 Jun 2013 Posts: 91
Location: Sip Land
|
Posted: Mon Nov 18, 2013 2:50 pm Post subject: change the FROM to match the Remote-Party-ID |
|
|
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 |
|
Tata Brekeke Master Guru
Joined: 27 Jan 2008 Posts: 223
|
Posted: Mon Nov 18, 2013 5:09 pm Post subject: |
|
|
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 |
|
Izzyg Brekeke Talented
Joined: 25 Jun 2013 Posts: 91
Location: Sip Land
|
Posted: Tue Dec 24, 2013 10:16 am Post subject: |
|
|
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 |
|
james Brekeke Master Guru
Joined: 10 Dec 2007 Posts: 498
|
Posted: Sun Jan 05, 2014 1:55 am Post subject: |
|
|
Have you tried Tata's rule?
It seems the DialPlan rule meets the requirement.
If not, explain clearly. |
|
Back to top |
|
Izzyg Brekeke Talented
Joined: 25 Jun 2013 Posts: 91
Location: Sip Land
|
Posted: Sat Feb 08, 2014 4:58 pm Post subject: |
|
|
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 |
|
hope Brekeke Master Guru
Joined: 15 Jan 2008 Posts: 862
|
Posted: Sat Feb 08, 2014 5:40 pm Post subject: |
|
|
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 |
|
Izzyg Brekeke Talented
Joined: 25 Jun 2013 Posts: 91
Location: Sip Land
|
Posted: Sat Feb 08, 2014 5:57 pm Post subject: |
|
|
Where will i find the logs ? |
|
Back to top |
|
hope Brekeke Master Guru
Joined: 15 Jan 2008 Posts: 862
|
|
Back to top |
|
Izzyg Brekeke Talented
Joined: 25 Jun 2013 Posts: 91
Location: Sip Land
|
Posted: Sun Feb 09, 2014 2:39 pm Post subject: |
|
|
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 |
|
hope Brekeke Master Guru
Joined: 15 Jan 2008 Posts: 862
|
Posted: Sun Feb 09, 2014 7:56 pm Post subject: |
|
|
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 |
|
|