Author |
Message |
Izzyg Brekeke Talented
Joined: 25 Jun 2013 Posts: 91
Location: Sip Land
|
Posted: Tue Dec 24, 2013 10:12 am Post subject: Dial plan to check the FROM and several TO area codes |
|
|
1. Brekeke Product Name and Version:
Brekeke SIP Server 2.4.8.6/286.3
2. Java version:
1.7.0_25
3. OS type and the version:
Windows Server 2008 R2
4. UA (phone), gateway or other hardware/software involved:
5. Your problem:
id like to have a dial plan set up where it check
if the FROM field phone number is 2125551212
and if the TO number he is calling to starts with 450 or 514 (so only to those 2 area codes)
then send the call out thru this specific trunk
currently it works just by checking the FROM field, but i also want to check the TO area code
Matching Patterns | $request = ^INVITE From = sip:12125551212 To = sip:(.+)@ $addr = 192.168.10.156
|
Deploy Patterns | $auth = false To = sip:%1@192.168.1.110 $session = failover sip:%1@192.168.1.110 sip:%1@192.168.1.111 &failover.timer.inviting = 5 &failover.timer.provisional = 360 $continue = false
|
|
|
Back to top |
|
james Brekeke Master Guru
Joined: 10 Dec 2007 Posts: 501
|
Posted: Tue Dec 24, 2013 12:15 pm Post subject: |
|
|
Add $getUri(To) = ^sip:450|^sip:514
Matching Patterns | $request = ^INVITE From = sip:12125551212@ $getUri(To) = ^sip:450|^sip:514 To = sip:(.+)@ $addr = 192.168.10.156
| Deploy Patterns | $auth = false To = sip:%1@192.168.1.110 $session = failover sip:%1@192.168.1.110 sip:%1@192.168.1.111 &failover.timer.inviting = 5 &failover.timer.provisional = 360 $continue = false
|
|
|
Back to top |
|
|