salaheddine elharit
2011-Aug-09 12:16 UTC
[asterisk-users] block all numbers begin by 00 and 1
hello i want to know how to do in order to block all numbers bgin by 00 and all numebrs begin by 1 i use sip account thanks and regards -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20110809/0d4b8856/attachment.htm>
Marcelo Ellmann Clemente
2011-Aug-09 12:37 UTC
[asterisk-users] block all numbers begin by 00 and 1
You could be a little more specific about your question but... http://www.voip-info.org/wiki/view/Asterisk+func+regex Just use the regex function. Any number which matches 00* || 1* goes to invalid/block/whatever extension. --- Marcelo Ellmann Freeddom Tecnologia e Servi?os S/A +55 11 52133200 Ramal 1016 ----- Original Message ----- From: "salaheddine elharit" <salah.elharit200 at gmail.com> To: "Asterisk Users Mailing List - Non-Commercial Discussion" <asterisk-users at lists.digium.com> Sent: Tuesday, 9 August, 2011 9:16:19 AM Subject: [asterisk-users] block all numbers begin by 00 and 1 hello i want to know how to do in order to block all numbers bgin by 00 and all numebrs begin by 1 i use sip account thanks and regards -- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
salaheddine elharit
2011-Aug-09 12:55 UTC
[asterisk-users] block all numbers begin by 00 and 1
Thanks for your response i have asterisk 1.4 installed , i configure some sip accounts 222 223 and i want to block the outbound calls numbers begins by 00 an 1 because i want to call just the local numbers in my country (all numbers in my country begins by 06) Could you please give me an example? best Regards 2011/8/9 Marcelo Ellmann Clemente <ellmann at freeddom.com>> You could be a little more specific about your question but... > > http://www.voip-info.org/wiki/view/Asterisk+func+regex > > Just use the regex function. Any number which matches 00* || 1* goes to > invalid/block/whatever extension. > > > --- > Marcelo Ellmann > Freeddom Tecnologia e Servi?os S/A > +55 11 52133200 Ramal 1016 > > > > > ----- Original Message ----- > From: "salaheddine elharit" <salah.elharit200 at gmail.com> > To: "Asterisk Users Mailing List - Non-Commercial Discussion" < > asterisk-users at lists.digium.com> > Sent: Tuesday, 9 August, 2011 9:16:19 AM > Subject: [asterisk-users] block all numbers begin by 00 and 1 > > > > > hello > > i want to know how to do in order to block all numbers bgin by 00 and all > numebrs begin by 1 > > i use sip account > > thanks and regards > > > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > New to Asterisk? Join us for a live introductory webinar every Thurs: > http://www.asterisk.org/hello > > 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 -- > New to Asterisk? Join us for a live introductory webinar every Thurs: > http://www.asterisk.org/hello > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20110809/4dac4b55/attachment.htm>
On Tuesday 09 Aug 2011, salaheddine elharit wrote:> hello > > i want to know how to do in order to block all numbers bgin by 00 and all > numebrs begin by 1 > > i use sip accountAll you have to do is, just make sure that there is no extension in the default context which matches _00. or _1. -- or, if there is one, it contains something other than Dial(${EXTEN}) ..... -- AJS Answers come *after* questions.
Marcelo Ellmann Clemente
2011-Aug-09 16:39 UTC
[asterisk-users] block all numbers begin by 00 and 1
That would work as well! :) --- Marcelo Ellmann Freeddom Tecnologia e Servi?os S/A +55 11 52133200 Ramal 1016 ----- Original Message ----- From: "A J Stiles" <asterisk_list at earthshod.co.uk> To: "Asterisk Users Mailing List - Non-Commercial Discussion" <asterisk-users at lists.digium.com> Sent: Tuesday, 9 August, 2011 12:21:09 PM Subject: Re: [asterisk-users] block all numbers begin by 00 and 1 On Tuesday 09 Aug 2011, salaheddine elharit wrote:> hello > > i want to know how to do in order to block all numbers bgin by 00 and all > numebrs begin by 1 > > i use sip accountAll you have to do is, just make sure that there is no extension in the default context which matches _00. or _1. -- or, if there is one, it contains something other than Dial(${EXTEN}) ..... -- AJS Answers come *after* questions. -- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
salaheddine elharit
2011-Aug-10 10:56 UTC
[asterisk-users] block all numbers begin by 00 and 1
thanks A J stiles and thanks Marcelo for your help and support i have remove 1 extension begin by _00 and _1 and all function without issue :) thanks and regards. 2011/8/9 Marcelo Ellmann Clemente <ellmann at freeddom.com>> That would work as well! :) > > --- > Marcelo Ellmann > Freeddom Tecnologia e Servi?os S/A > +55 11 52133200 Ramal 1016 > > > > > ----- Original Message ----- > From: "A J Stiles" <asterisk_list at earthshod.co.uk> > To: "Asterisk Users Mailing List - Non-Commercial Discussion" < > asterisk-users at lists.digium.com> > Sent: Tuesday, 9 August, 2011 12:21:09 PM > Subject: Re: [asterisk-users] block all numbers begin by 00 and 1 > > On Tuesday 09 Aug 2011, salaheddine elharit wrote: > > hello > > > > i want to know how to do in order to block all numbers bgin by 00 and all > > numebrs begin by 1 > > > > i use sip account > > All you have to do is, just make sure that there is no extension in the > default context which matches _00. or _1. -- or, if there is one, it > contains > something other than Dial(${EXTEN}) ..... > > -- > AJS > > Answers come *after* questions. > > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > New to Asterisk? Join us for a live introductory webinar every Thurs: > http://www.asterisk.org/hello > > 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 -- > New to Asterisk? Join us for a live introductory webinar every Thurs: > http://www.asterisk.org/hello > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20110810/35ff6df3/attachment.htm>