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

WaitExten() — Waits for an extension to be entered

Synopsis

    WaitExten([seconds])

Waits for the user to enter a new extension for the specified number of seconds, then returns 0. You can pass fractions of a second (e.g., 1.5 = 1.5 seconds). If unspecified, the default extension timeout will be used.

    ; wait 15 seconds for the user to dial an extension
    exten => s,1,Answer()
    exten => s,2,Playback(enter-ext-of-person)
    exten => s,3,WaitExten(15)

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