Author |
Message |
bonifatio Brekeke Member
Joined: 19 Feb 2010 Posts: 14
Location: EUROPE
|
Posted: Fri Dec 30, 2011 7:04 am Post subject: Dialplan restricted group of users |
|
|
1. Brekeke Product Name and version:
Brekeke SIP Server , Version 2.4.3.0
2. Java version:
6.11
3. OS type and the version:
windows server 2008
4. UA (phone), gateway or other hardware/software involved:
5. Select your network pattern from http://www.brekeke-sip.com/bbs/network/networkpatterns.html :5
6. Your problem:
I want to restrict a user with i.e. the number 8770123[1-9] to only dial to users that are in the same number range (ending at 1-9) or that equal the 6-digit number in between (so stripped from 8 and [1-9].
If the user selects any number outside this range it should be forwarded to a specific number i.e. 200 which will play an error message.
Can anyone help me setting up a proper dialplan ( I am not using the PBX version, only sip server basic) or point me to an example similar to my problem? |
|
Back to top |
|
hope Brekeke Master Guru
Joined: 15 Jan 2008 Posts: 862
|
Posted: Fri Dec 30, 2011 10:20 am Post subject: |
|
|
dial plan 1
matching
$request = ^INVITE
From = sip:.[0-9]{6}[1-9]@
To = sip:(.[0-9]{6}[1-9])@
deploy:
To = sip:%1@
dial plan 2
matching
$request = ^INVITE
To = sip:.+@
deploy
To = sip:200@
create dial plan rules in order shown above put first dial plan on top of the second one
the dial plan rules will route the call to user registered on Brekeke |
|
Back to top |
|
klgoh Brekeke Junior Member
Joined: 10 Feb 2012 Posts: 5
|
Posted: Fri Feb 10, 2012 12:51 pm Post subject: |
|
|
I also wanted to restrict call. The user with the same 5 digits prefix only can call the same 5 digits prefix. Example 600011 can call 600012 to 600019. I try the dial plan as follows:
dial plan 1
matching
$request = ^INVITE
From = sip:[0-9]{5}[1-9]@
To = sip:([0-9]{5}[1-9])@
deploy:
To = sip:%1@
Any dial plan master can help? |
|
Back to top |
|
hope Brekeke Master Guru
Joined: 15 Jan 2008 Posts: 862
|
Posted: Mon Feb 13, 2012 1:24 pm Post subject: |
|
|
matching
$request = ^INVITE
From = sip:([0-9]{5}).+@
To = !sip:%1.+@
deploy:
$action = 404
if first 5 number is not same between from and to, reply 404 not found |
|
Back to top |
|
|