Skip to Content
Asterisk: The Future of Telephony, 2nd Edition
book

Asterisk: The Future of Telephony, 2nd Edition

by Jim Van Meggelen, Jared Smith, Leif Madsen
August 2007
Intermediate to advanced
608 pages
20h 33m
English
O'Reilly Media, Inc.
Content preview from Asterisk: The Future of Telephony, 2nd Edition

Name

WaitForSilence() — Waits for a specified amount of silence

Synopsis

WaitForSilence(silencerequired[,repeat[,timeout]])

Waits for repeat instances of silencerequired milliseconds of silence. If repeat is omitted, the application waits for a single instance of silencerequired milliseconds of silence.

If the timeout option is specified, this application will return to the next priority in the dialplan after the specified number of seconds, even if silence has not been detected.

Warning

Please use the timeout with caution, as it may defeat the purpose of this application, which is to wait indefinitely until silence is detected on the line. You may want to set the timeout to a high value only to avoid an infinite loop in cases where silence is never detected.

This applications sets a channel variable named WAITSTATUS to either SILENCE or TIMEOUT.

; wait for three instances of 300 ms of silence
exten => 123,WaitForSilence(300,3)
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Asterisk: The Future of Telephony

Asterisk: The Future of Telephony

Jim Van Meggelen, Jared Smith, Leif Madsen
Switching to VoIP

Switching to VoIP

Theodore Wallingford

Publisher Resources

ISBN: 9780596510480Errata Page