AbsoluteTimeout( )


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

 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 ( ), 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



Asterisk. The Future of Telephony
Asterisk: The Future of Telephony: The Future of Telephony
ISBN: B0026OR3OO
EAN: N/A
Year: 2001
Pages: 380

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net