Blacklist/Blacklist Last problem

Hi,

I don’t seem to be able to get app-blacklist-last to work properly. It seems to ignore my pressing ‘1’ to confirm addition of the number to the blacklist.

Here’s what I see in my log.

Thanks,
C.

[size=9] – <SIP/101-08b81960> Playing ‘digits/7’ (language ‘en’)
– Executing [[email protected]:8] Set(“SIP/101-08b81960”, “TIMEOUT(digit)=3”) in new stack
– Digit timeout set to 3
– Executing [[email protected]:9] Set(“SIP/101-08b81960”, “TIMEOUT(response)=7”) in new stack
– Response timeout set to 7
– Executing [[email protected]t:10] Playback(“SIP/101-08b81960”, “if-correct-press”) in new stack
– <SIP/101-08b81960> Playing ‘if-correct-press’ (language ‘en’)
– Executing [[email protected]:11] Playback(“SIP/101-08b81960”, “digits/1”) in new stack
– <SIP/101-08b81960> Playing ‘digits/1’ (language ‘en’)
– Executing [[email protected]:12] Goto(“SIP/101-08b81960”, “end”) in new stack
– Goto (app-blacklist-last,s,15)
– Executing [[email protected]:15] NoOp(“SIP/101-08b81960”, “Waiting for input”) in new stack
== Auto fallthrough, channel ‘SIP/101-08b81960’ status is ‘UNKNOWN’
[/size]

first question: what version of asterisk are you running?
second, try adding the following in extensions_additional.conf:

[code:1]
EXISTING CODE:

[app-blacklist-add]

exten => s,n(end),Noop(Waiting for input)

THEN ADD:

exten => s,n,WaitExten(60)
exten => s,n,Playback(sorry-youre-having-problems&goodbye)

THEN LEAVE WHAT IS LEFT
[/code:1]
so that the whole app-blacklist-add context now looks like:

[code:1]
[app-blacklist-add]
include => app-blacklist-add-custom
exten => s,1,Answer
exten => s,n,Wait(1)
exten => s,n,Playback(enter-num-blacklist)
exten => s,n,Set(TIMEOUT(digit)=5)
exten => s,n,Set(TIMEOUT(response)=60)
exten => s,n,Read(blacknr,then-press-pound,)
exten => s,n,SayDigits(${blacknr})
exten => s,n,Playback(if-correct-press)
exten => s,n,Playback(digits/1)
exten => s,n(end),Noop(Waiting for input)
exten => s,n,WaitExten(60)
exten => s,n,Playback(sorry-youre-having-problems&goodbye)
exten => 1,1,Set(DB(blacklist/${blacknr})=1)
exten => 1,n,Playback(num-was-successfully)
exten => 1,n,Playback(added)
exten => 1,n,Wait(1)
exten => 1,n,Hangup
[/code:1]
If that fixes the problem, please submit a bug report against this on the tracker system so we can make sure to get it fixed because what you added above will get overwritten, we’ll have to update the blacklist module.

Apologies for not including the Asterisk version, which is 1.4.6.

I added the additional lines to app-blacklist-add and app-blacklist-last and it worked just fine.

Never submitted a bug before but there’s a first time for everything :slight_smile:

Thanks,
C.