[asterisk-users] Blacklisting Toll-Free etc.

Andres andres at telesip.net
Sat Aug 18 16:10:27 CDT 2007


voiplist wrote:

>I have always been able to block toll-free numbers by catching them
>with a line similar to this for each DID I have on my system:
>
>exten => 5554441212/_888NXXXXXX,n,Playback(GoAway)
>
>Where 15554441212 is one of the DIDs that rings into our Asterisk box.
>
>The problem with this approach that I have to create a line like this
>for every pattern I want to block multiplied by every DID on my
>system, this gets old.
>
>So for example, if I have 20 DIDs that ring into my box, and I want to
>block 10 caller-id's or caller-id patterns I need like 200 lines in my
>extensions.conf.
>
>What I want to do is something like this:
>
>exten => _NXXNXXXXXX/_888NXXXXXX,n,Playback(GoAway)
>  
>
How about you start with lines:

exten => _NXXNXXXXXX/_888NXXXXXX,1,Playback(GoAway)
exten => _NXXNXXXXXX,1,NoOP(Not a Toll Free)

..and then all your DIDs start at priority 2

exten => 5554441212,2,Dial(SIP...bla bla bla)

That should do the trick.

Andres
http://www.telesip.net

>This never seems to work, why? Is there another way to block all calls
>from a particular caller-id or caller-id pattern without specifying
>the exact DID/Extension?
>
>Regards,
> Todd R.
>
>--
>Prestige Messaging
>Live Answering Services
>SIP or Toll-Free Connectivity
>Light Accounts From $14.95/mo
>http://www.PrestigeMessaging.com
>
>_______________________________________________
>--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
>
>
>  
>




More information about the asterisk-users mailing list