[asterisk-users] AGI WAIT FOR DIGIT - key press BEFORE command

David asterisk.org at spam.lublink.net
Wed Apr 27 08:47:33 CDT 2011


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




More information about the asterisk-users mailing list