[asterisk-users] Working with Blacklist database

Richard Kenner kenner at gnat.com
Mon May 10 13:02:43 CDT 2010


> I have an Asterisk 1.4.2 system online and have built up quite a large 
> blacklist of tele-spammers that have been calling us.  Recently we 
> swapped one of our DID numbers to a SIP provider that now prefixes all 
> calls with +1xxxxxxxxxxxx in front of US numbers (we're in the USA) and 
> I need to edit my blacklist database so that all numbers in there that 
> don't have the +1 prefix in front of them, now have a version of it that 
> can match to these new prefixes.

Just remove the +1:

exten => xxx/_+1.,1,Set(CALLERID(num)=${CALLERID(num):2})

Where xxx is the relevant extension.



More information about the asterisk-users mailing list