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



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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.