[*] blacklist
John Lange
john at johnlange.ca
Wed Nov 5 16:33:12 CST 2008
I should probably also mention the following:
----
LookupBlacklist(options): Looks up the Caller*ID number on the active
channel in the Asterisk database (family 'blacklist').
The option string may contain the following character:
'j' -- jump to n+101 priority if the number/name is found in the
blacklist
This application sets the following channel variable upon completion:
LOOKUPBLSTATUS
The status of the Blacklist lookup as a text string, one of
FOUND | NOTFOUND
Example: exten => 1234,1,LookupBlacklist()
This application is deprecated and may be removed from a future release.
Please use the dialplan function BLACKLIST() instead.
----
--
John Lange
www.johnlange.ca
On Wed, 2008-11-05 at 16:02 -0600, Sandy Mackenzie wrote:
> I am trying to get the the blacklist feature to work, but I am having problems. I have add a number to the blacklist database with
>
> database put blacklist xxxxxxx 1. When I call from that number while testing I can see that it recognizes the blacklist, however the dial plan just continues on and does not jump to the busy tone, as I am trying.
>
> My systems answers all calls with a greeting, and callers can choose from two extensions. I have only included 1 in this example. I want it to detect the blacklisted number either before the greeting or after the greeting and send the blacklisted caller onto either another voicemail or just hang up.
>
> I am using asterisk 1.4
>
>
> [from-pstn]
> exten => s,1,Answer( )
> exten => s,2,Background(Greeting)
> exten => 1,1,LookupBlackList( )
> exten => 1,102,Playback(tt-allbusy)
> exten => 1,2,Dial(${USER1},20)
> exten => 1,3,Voicemail(100)
> exten => 1,4,Playback(vm-goodbye)
> exten => 1,5,Hangup( )
> exten => 1,103,Playback(tt-allbusy)
> exten => 1,104,Hangup( )
>
>
More information about the Asterisk
mailing list