[asterisk-users] Stupid Timeout Question

Steve Edwards asterisk.org at sedwards.com
Thu May 1 20:04:42 CDT 2008


On Thu, 1 May 2008, Douglas Garstang wrote:

> What the heck is wrong with this?
>
> [general]
> autofallthrough=yes
>
> ....
> exten => s,n(prompt),NoOp()
> exten => s,n,Background(wish-to-continue)
> exten => s,n,Background(1-yes-2-no)
> exten => s,n,WaitExten(5)
>
> ; User entered nothing
> exten => t,1,Playback(yes-dear)
> exten => t,n,Goto(s,prompt)

Waitexten() does not "trigger" a timeout when it expires, it continues 
inline.

Add

 	exten = s,n,			verbose(Dooh!)
 	exten = s,n,			hangup()

 	exten = 1,1,			verbose(yes)
 	exten = 1,n,			hangup()

 	exten = 2,1,			verbose(no)
 	exten = 2,n,			hangup()

after waitexten().

Thanks in advance,
------------------------------------------------------------------------
Steve Edwards      sedwards at sedwards.com      Voice: +1-760-468-3867 PST
Newline                                             Fax: +1-760-731-3000



More information about the asterisk-users mailing list