[Asterisk-Users] Preventing an extension from dialing certainoutbound codes

Benjamin Lawetz blawetz at teliphone.ca
Thu Aug 18 13:06:32 MST 2005


Just put 203 in his own context which reacts to those numbers, and then
include your normal context

[restrict]
Exten => _00.,1,goto(unauthorised,1)
Exten => _087.,1,goto(unauthorised,1)
Exten => _086.,1,goto(unauthorised,1)
Exten => unauthorised,1,Playback(invalid)
Exten => unauthorised,2,wait(2)
Exten => unauthorised,3,Hangup()
Include => regular_context

-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Sean Rima
Sent: August 18, 2005 3:36 PM
To: asterisk-users at lists.digium.com
Subject: [Asterisk-Users] Preventing an extension from dialing
certainoutbound codes

Is there anyway to prevent an extension from dialing certain codes. ie I
want to prevent extension 203 from dialing number which start with 00
087 086 etc

Sean

-- 
+----------------------------------------------------+
|VOIP: FreeWorldDial 689482 VOIPBuster thecivvie     |
|GPG Key: http://thecivvie.fastmail.fm/thecivvie.asc |
+----------------------------------------------------+





More information about the asterisk-users mailing list