wait for digit

Usage: WAIT FOR DIGIT <timeout>

Waits up to <timeout> milliseconds for channel to receive a DTMF digit.

Use -1 for the <timeout> value if you desire the call to block indefinitely.

Returns:
failure: 200 result=-1
timeout: 200 result=0
success: 200 result=<digit>

<digit> is the ascii code for the digit received.

New in Asterisk 1.4.39:

Added extra functionality to AGI command WAIT FOR DIGIT. Add the ability to play a sound file, listen for more than just one digit, specify escape characters. Backwards compatible (to work with only timeout specified). (closes issue #15531)


See also




Go back to Asterisk AGI

Usage: WAIT FOR DIGIT <timeout>

Waits up to <timeout> milliseconds for channel to receive a DTMF digit.

Use -1 for the <timeout> value if you desire the call to block indefinitely.

Returns:
failure: 200 result=-1
timeout: 200 result=0
success: 200 result=<digit>

<digit> is the ascii code for the digit received.

New in Asterisk 1.4.39:

Added extra functionality to AGI command WAIT FOR DIGIT. Add the ability to play a sound file, listen for more than just one digit, specify escape characters. Backwards compatible (to work with only timeout specified). (closes issue #15531)


See also




Go back to Asterisk AGI

Created by: pinhole, Last modification: Wed 30 of Oct, 2013 (09:44 UTC) by weinerk
Please update this page with new information, just login and click on the "Edit" or "Discussion" tab. Get a free login here: Register Thanks! - Find us on Google+