Dial plan to check the FROM and several TO area codes

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

Dial plan to check the FROM and several TO area codes

Post by Izzyg »

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 Pattern:
$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
james
Posts: 501
Joined: Mon Dec 10, 2007 12:56 pm

Post by james »

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
=========================
Post Reply