[asterisk-users] blacklist caller ID

Geoff Lane geoff at gjctech.co.uk
Thu Mar 14 01:04:09 CDT 2013


On Thursday, March 14, 2013, Joseph wrote:

> Can someone refresh my memory how to backlist caller ID in
> asterisk 1.8?


> I had it working in ver. 1.4 but in 1.8 it changed.

I'm still using 1.4. In that I add a number to the blacklist with

CLI> database put blacklist 0123456789 1

That is to add the number to the blacklist 'group' and give it a value
of 1.

Then is extensions.conf:

exten => main,n,GotoIf($[${BLACKLIST()}]?banned,1)
;(...)
; Blacklisted numbers
exten => banned,1,Playback(silence/2&im-sorry)
exten => banned,n,Playback(cannot-complete-as-dialed)
exten => banned,n,Playback(privacy-you-are-blacklisted)
exten => banned,n,Playback(goodbye)
exten => banned,n,Hangup()

Hopefully, the same thing works in 1.8 and 10 (I'd be interested to
know because I intend to upgrade my hardware soon and will probably
take the opportunity to update * to a later version).

HTH,

-- 
Geoff




More information about the asterisk-users mailing list