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)

Get Asterisk: The Future of Telephony now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.