Skip to content

WaitDigit()

Synopsis

Waits for a digit to be entered.

Description

This application waits for the user to press one of the accepted digits for a specified number of seconds.

  • WAITDIGITSTATUS - This is the final status of the command

    • ERROR - Parameters are invalid.

    • DTMF - An accepted digit was received.

    • TIMEOUT - The timeout passed before any acceptable digits were received.

    • CANCEL - The channel has hungup or was redirected.

  • WAITDIGITRESULT - The digit that was received, only set if WAITDIGITSTATUS is 'DTMF'.

Syntax

WaitDigit([seconds,[digits]])
Arguments
  • seconds - Can be passed with fractions of a second. For example, '1.5' will ask the application to wait for 1.5 seconds.

  • digits - Digits to accept, all others are ignored.

See Also

Generated Version

This documentation was generated from Asterisk branch 22 using version GIT