It's called context, it's not a command but an extension you define. For example if your devices start in [default]: [default] include => disallowed include => allowed [disallowed] exten => _1900X.,1,Congestion() [allowed] exten => _1NXXNXXXXXX,1,Dial(blahblah)
The above will first check (from default) for any extension dialed in disallow, and then in allow. Therfore anything starting 1900 will get congestion, but anything else that starts with 1 and has 2-9 as the second digit, any other digit for digit 3 and 4, 2-9 for the 5th digit and any digit for the the rest being 11 digits long will go thru Dial. Hope this helps. On 7/1/07, bilal ghayyad <[EMAIL PROTECTED]> wrote: > Hi List; > > What is the command and where I can write it to block > specific code from calls (then no one will be able to > place call for any number start by that code)? > > --------------- > Regards > ITS > IP Telephony and Contact Center Engineer > Eng. Bilal Ghayad > Mobile: + (965) 9849460 > Yahoo ID: [EMAIL PROTECTED] > MSN ID: [EMAIL PROTECTED] > > > > > ____________________________________________________________________________________ > Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, > news, photos & more. > http://mobile.yahoo.com/go?refer=1GNXIC > > _______________________________________________ > --Bandwidth and Colocation Provided by http://www.api-digital.com-- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users > _______________________________________________ --Bandwidth and Colocation Provided by http://www.api-digital.com-- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
