O'Reilly logo

Asterisk: The Future of Telephony by Leif Madsen, Jared Smith, Jim Van Meggelen

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

WAIT FOR DIGIT

Synopsis

WAIT FOR DIGIT timeout

Waits up to timeout milliseconds for the channel to receive a DTMF digit. Use -1 for the timeout value if you want the call to block indefinitely.

Return values:

-1

Error or channel failure

0

Timeout

value

ASCII value of digit (if pressed), in decimal

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required