[asterisk-users] Dial statement problem
Rich Adamson
radamson at routers.com
Thu Aug 17 10:16:20 MST 2006
Need a little assist by someone else's eyes; mine have gone blurry.
Running v1.2.10 checked out from svn as of today.
Problem: When dial statement is executed with a timeout value and no one
answers the call, the next priority (#4) is not being executed as expected.
When an incoming pstn call arrives, the zap/4 channel properly handles
the call and sends it to the [inbound-bus-line] context. The CLI for a
sample call appears just below the following extensions.conf paste.
When the 20 second Dial() timeout occurs, step #4 is not executed.
Rather, the next dialplan entry executed is from the "next context" that
immediately follows. Why?
Portion of extensions.conf:
[inbound-bus-line]
exten => s,1,NoOp,${CALLERID(all)}
exten => s,2,NoOp,"bus-line-step2"
exten => s,3,Dial(${PHONE1}&${PHONE2}|20)
exten => s,4,NoOp,"bus-line-step3"
exten => s,5,Goto(bus-ivr-main|s|1)
exten => s,104,NoOp,"bus-line-step103"
exten => s,105,Goto(bus-ivr-main|s|1)
[inbound-bus-dialin] ; goes directly to IVR and allows most dialplan dialing
include => local-extns
include => misc-extns
include => outgoing-calls
include => parkedcalls
exten => s,1,NoOp,${CALLERID(all)}
exten => s,2,NoOp,"bus-dialin-step"
exten => s,3,Answer
exten => s,4,Goto(bus-ivr-main|s|1)
<snip>
[bus-ivr-main]
exten => s,1,Wait,1
exten => s,2,NoOp,"step 2"
exten => s,3,Answer
exten => s,4,Set(TIMEOUT(digit)=5)
exten => s,5,Set(TIMEOUT(response)=10)
exten => s,6,NoOp,${CALLERID(all)}
exten => s,7,Background(npi-greeting) ; "Thanks for calling press 1 for"
<snip>
phoenix*CLI>
-- Starting simple switch on 'Zap/4-1'
Aug 17 11:44:52 NOTICE[15342]: chan_zap.c:6073 ss_thread: Got event 2
(Ring/Answered)...
-- Executing NoOp("Zap/4-1", ""Adamson Richard" <402432xxxx>") in
new stack
-- Executing NoOp("Zap/4-1", ""bus-line-step2"") in new stack
-- Executing Dial("Zap/4-1", "SIP/3000&SIP/3001|20") in new stack
-- Called 3000
-- Called 3001
-- SIP/3000-09eed5e0 is ringing
-- SIP/3001-09ef2b20 is ringing
<Note: problem starts here. The GoTo in [inbound-bus-line] step #5 is
not executed. Rather, dialplan processing continues in the next context.>
-- Starting simple switch on 'Zap/2-1'
-- Executing NoOp("Zap/2-1", """ <>") in new stack
-- Executing NoOp("Zap/2-1", ""bus-dialin-step"") in new stack
-- Executing Answer("Zap/2-1", "") in new stack
-- Executing Goto("Zap/2-1", "bus-ivr-main|s|1") in new stack
-- Goto (bus-ivr-main,s,1)
-- Executing Wait("Zap/2-1", "1") in new stack
-- Executing NoOp("Zap/2-1", ""step 2"") in new stack
Any help would be greatly appreciated.
Rich
More information about the asterisk-users
mailing list