Sean Rima
2005-Aug-18 12:35 UTC
[Asterisk-Users] Preventing an extension from dialing certain outbound 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 | +----------------------------------------------------+ -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 2859 bytes Desc: S/MIME Cryptographic Signature Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20050818/a606959e/smime.bin
Andrew Kohlsmith
2005-Aug-18 13:03 UTC
[Asterisk-Users] Preventing an extension from dialing certain outbound codes
On Thursday 18 August 2005 15:35, Sean Rima wrote:> 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 etcYou're thinking about it wrong. Devices can only dial #s that match the dialplan in their context. Simply don't include any extensions that match it. It is also painfully obvious that you haven't read much on Asterisk. I suggest you start by reading the Asterisk Handbook draft, and follow up by poking around the wiki and the mailing list, which is searchable with google. http://www.digium.com/handbook-draft.pdf http://voip-info.org/ and include "site: lists.digium.com" in your google terms to search the list. -A.
Benjamin Lawetz
2005-Aug-18 13:06 UTC
[Asterisk-Users] Preventing an extension from dialing certainoutbound codes
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@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Sean Rima Sent: August 18, 2005 3:36 PM To: asterisk-users@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 | +----------------------------------------------------+
Sean Rima
2005-Aug-18 13:42 UTC
[Asterisk-Users] Preventing an extension from dialing certainoutbound codes
Benjamin Lawetz wrote:> 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 >Thanks, I see I have a lot ore learning to do and will get back to reading my printout of the PDF Sean -- +----------------------------------------------------+ |VOIP: FreeWorldDial 689482 VOIPBuster thecivvie | |GPG Key: http://thecivvie.fastmail.fm/thecivvie.asc | +----------------------------------------------------+ -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 2859 bytes Desc: S/MIME Cryptographic Signature Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20050818/c2b43926/smime.bin