I haven't done this for a while... yes, that is my excuse. 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) It never gets to the timeout extension when the user enters nothing. I tried it with autofallthrough set to no as well. No change. Asterisk 1.2. What am I missing? Doug. ____________________________________________________________________________________ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080501/80eb8ddb/attachment.htm
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
Hi, It may have to do with the version of Asterisk. I have (basically) the same coding on an Asterisk V1.4.18 box, and a V1.6 SVN test box - in both boxes the Asterisk does execute the => t,1,Playback(connection-timed-out) when nothing is entered. The only differences I can see between your coding and mine, is that a) I simply use the default timeout (i.e., "WaitExten() "); but don't see why this matters, and b) I use the "m" option in the Background command, since I have a one-key extension. You could try using, exten => s,n,Set(TIMEOUT(absolute)=5) before the Background command, and see if this works. Gerald H.