[asterisk-users] blacklist caller ID

Joseph syscon780 at gmail.com
Thu Mar 14 12:18:30 CDT 2013


On 03/14/13 06:04, Geoff Lane wrote:
>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

I got it. In asterisk 1.8 see:
http://www.voip-info.org/wiki/view/Asterisk+func+BLACKLIST

There is no need to give value of 1, it is just:
CLI> database put blacklist 0123456789

-- 
Joseph



More information about the asterisk-users mailing list