Discussion: Asterisk cmd Wait

Comments Filter

Re: Wait() not waiting?

Your include reuses priorities. Check your debug to make sure that you don't have issues with parsing. s,1,Set(LANGUAGE()=fr) already used the priority that s,1,Wait(30) attempts to set. You more than likely never call the wait as asterisk is ignoring the code due to priority collision.

by jnfuller, Sunday 20 of May, 2007 (15:51:33 UTC)
Wait() not waiting?

I have a dial plan that looks like the following:

exten => s,1,Set(LANGUAGE()=fr)
include => zone1
exten => s,n,Noop

;exten => s,1,Set(TIMEOUT(digit)=2)
exten => s,1,Wait(30)
exten => s,n,Answer
exten => s,n,BackgroundDetect(custom/welcome)
; continuing ...

I want the phone to ring around 4 times before Asterisk Answer()s, but the Wait() command doesn't seem to wait 30 seconds at all. No matter how many seconds I specify, Asterisk answers during the second ring, always. Is there something I overlook? Thanks!

by quad, Tuesday 15 of August, 2006 (03:13:14 UTC)