WaitForTone()¶
Synopsis¶
Wait for tone
Description¶
Waits for a single-frequency tone to be detected before dialplan execution continues.
-
WAITFORTONESTATUS
- This indicates the result of the wait.-
SUCCESS
-
ERROR
-
TIMEOUT
-
HANGUP
-
Syntax¶
Arguments¶
-
freq
- Frequency of the tone to wait for. -
duration_ms
- Minimum duration of tone, in ms. Default is 500ms. Using a minimum duration under 50ms is unlikely to produce accurate results. -
timeout
- Maximum amount of time, in seconds, to wait for specified tone. Default is forever. -
times
- Number of times the tone should be detected (subject to the provided timeout) before returning. Default is 1. -
options
-
d
- Custom decibel threshold to use. Default is 16. -
s
- Squelch tone.
-
See Also¶
Generated Version¶
This documentation was generated from Asterisk branch 16 using version GIT