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

ResponseTimeout() — Sets maximum timeout for awaiting response from caller

Synopsis

    ResponseTimeout(seconds)

Sets the maximum amount of time permitted after falling through a series of priorities for a channel in which the caller may begin typing an extension. If the caller does not type an extension in this amount of time, control will pass to the t extension, if it exists; if not, the call will be terminated.

Always returns 0.

    ; allow callers three seconds to make a choice, before sending them
    ; to the 't' extension
    exten => s,1,Answer()
    exten => s,2,ResponseTimeout(3)
    exten => s,3,Background(enter-ext-of-person)

    exten => t,1,Playback(im-sorry)
    exten => t,1,Playback(goodbye)

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