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. -- Joseph
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
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