[asterisk-users] block all numbers begin by 00 and 1

salaheddine elharit salah.elharit200 at gmail.com
Tue Aug 9 07:55:21 CDT 2011


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>


More information about the asterisk-users mailing list