David
2011-Apr-27 13:47 UTC
[asterisk-users] AGI WAIT FOR DIGIT - key press BEFORE command
Hi, Consider the following situation : <SIP/asterisk-0000001d>AGI Rx << WAIT FOR DIGIT 3000 <SIP/asterisk-0000001d>AGI Tx >> 200 result=48 <SIP/asterisk-0000001d>AGI Rx << WAIT FOR DIGIT 3000 <SIP/asterisk-0000001d>AGI Tx >> 200 result=48 <SIP/asterisk-0000001d>AGI Rx << WAIT FOR DIGIT 3000 <SIP/asterisk-0000001d>AGI Tx >> 200 result=48 <SIP/asterisk-0000001d>AGI Rx << WAIT FOR DIGIT 3000 What happens if the user enters a digit between the "200 result=" and the next "WAIT FOR DIGIT"? Will the next WAIT FOR DIGIT catch the digit? Is the digit lost? How can I insure I don't lose the digit ? I am calling one digit at a time because I want to validate the user's entry at each key press. Thanks, David
Pezhman Lali
2011-Apr-30 13:27 UTC
[asterisk-users] AGI WAIT FOR DIGIT - key press BEFORE command
Dear try phpagi. it has a lot of useful functions. in this scenario you will lose your digit, set a check point between each digit gathering best On Wed, Apr 27, 2011 at 6:17 PM, David <asterisk.org at spam.lublink.net>wrote:> Hi, > > Consider the following situation : > > <SIP/asterisk-0000001d>AGI Rx << WAIT FOR DIGIT 3000 > <SIP/asterisk-0000001d>AGI Tx >> 200 result=48 > <SIP/asterisk-0000001d>AGI Rx << WAIT FOR DIGIT 3000 > <SIP/asterisk-0000001d>AGI Tx >> 200 result=48 > <SIP/asterisk-0000001d>AGI Rx << WAIT FOR DIGIT 3000 > <SIP/asterisk-0000001d>AGI Tx >> 200 result=48 > <SIP/asterisk-0000001d>AGI Rx << WAIT FOR DIGIT 3000 > > What happens if the user enters a digit between the "200 result=" and the > next "WAIT FOR DIGIT"? Will the next WAIT FOR DIGIT catch the digit? Is the > digit lost? How can I insure I don't lose the digit ? I am calling one digit > at a time because I want to validate the user's entry at each key press. > > Thanks, > > David > > > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > New to Asterisk? Join us for a live introductory webinar every Thurs: > http://www.asterisk.org/hello > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20110430/463a0abd/attachment.htm>