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

Pezhman Lali lopl at lopl.net
Sat Apr 30 08:27:50 CDT 2011


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>


More information about the asterisk-users mailing list