Dialplan restricted group of users

Discuss any topic about Brekeke SIP Server.

Moderator: Brekeke Support Team

Post Reply
bonifatio
Posts: 14
Joined: Fri Feb 19, 2010 2:45 pm
Location: EUROPE

Dialplan restricted group of users

Post by bonifatio »

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/ ... terns.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?
hope
Posts: 862
Joined: Tue Jan 15, 2008 4:08 pm

Post by hope »

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
klgoh
Posts: 5
Joined: Fri Feb 10, 2012 12:42 pm

Post by klgoh »

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?
hope
Posts: 862
Joined: Tue Jan 15, 2008 4:08 pm

Post by hope »

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