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

AbsoluteTimeout() — Sets the maximum number of seconds a call may last

Synopsis

    AbsoluteTimeout(length)

Sets the absolute time limit of a call to length seconds. Calls lasting longer than length seconds will be sent to the T (absolute timeout) extension, if it exists. Otherwise, the channel will be hung up.

If length is set to zero (0), the timeout is disabled.

Each time AbsoluteTimeout() runs, it overrides the previous timeout setting. Asterisk starts the timeout countdown at the time the application is called, not at the time the call starts.

    ; limit calls to ex-girlfriend to 300 seconds
    exten => 123,1,AbsoluteTimeout(300)
    exten => 123,2,Dial(${EX-GIRLFRIEND})
    exten => T,1,Playback(im-sorry)
    exten => T,2,Playback(vm-goodbye)
    exten => T,3,Hangup()

See Also

DigitTimeout(), ResponseTimeout(), the T extension

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