[asterisk-users] blacklist caller ID

Joseph syscon780 at gmail.com
Thu Mar 14 00:33:57 CDT 2013


On 03/13/13 22:24, 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.

In database I put my phone number:
/blacklist/4715660                                : Blacklisted for testing

in extension.conf
exten => s,1,GotoIf(${BLACKLIST()}?blacklisted)
...
exten => s,n(blacklisted),Hangup()

but it is not working.

dialplan show, gives:

   '#' =>            1. Background(vm-goodbye)                     [pbx_config]
                     2. Hangup()                                   [pbx_config]
   '*' =>            1. Goto(s,3)                                  [pbx_config]
   'i' =>            1. Answer()                                   [pbx_config]
                     2. Playback(pbx-invalid)                      [pbx_config]
                     3. Goto(s,4)                                  [pbx_config]
   's' =>            1. GotoIf(${BLACKLIST()}?blacklisted)         [pbx_config]
                     2. Answer()                                   [pbx_config]
                     3. Set(CHANNEL(musicclass)=default)           [pbx_config]
                     4. Background(afterhours-menu,t)		  [pbx_config]
                     5. Set(TIMEOUT(digit)=7)                      [pbx_config]
                     6. Wait(1)                                    [pbx_config]
                     7. Voicemail(11)                              [pbx_config]
                     8. Hangup()                                   [pbx_config]
                     102. Goto(blacklisted,s,1)                    [pbx_config]
      [blacklisted]  103. Hangup()                                 [pbx_config]

What am I doing wrong? 

-- 
Joseph



More information about the asterisk-users mailing list