login | register
Wed 09 of Jul, 2008 [06:10 UTC]

voip-info.org

Discuss [1] History

Asterisk cmd AbsoluteTimeout

Created by: oej,Last modification on Wed 31 of Oct, 2007 [19:02 UTC] by jkazimir

Synopsis:

 Set absolute maximum time of call

Description:

 AbsoluteTimeout(seconds)

  • Set the absolute maximum amount of time permitted for a call. A setting of 0 disables the timeout.
  • Note that the timeout is set from the current time forward, not counting the number of seconds the call has already been up.
  • Each time you call AbsoluteTimeout(), all previous absolute timeouts are cancelled.
  • Will return the call to the T extension so that you can playback an explanatory note to the calling party (the called party will not hear that)

 Set(TIMEOUT(absolute)=seconds)
  • New Syntax in Version 1.2

Return codes

Always returns 0.

Note that the behaviour described above only applies if the channel has been answered. If it hasn't, then all bets are off - the T extension is never run and any Wait() commands are ignored from the timeout point onwards. Any commands/functions which may take time to run (e.g. CURL()) are allowed to run their course regardless of how long they take.

See also



Asterisk | Applications | Functions | Variables | Expressions | Asterisk FAQ


Comments

Comments Filter
222

333Set(TIMEOUT(absolute) = seconds not working in 1.2 ?

by rverspuy, Friday 03 of November, 2006 [08:29:07 UTC]
I'm using Asterisk 1.2.10-BRIstuffed-0.3.0-PRE-1s.
But the New syntax for version 1.2 is not working for me.
When I use the old syntax it works, just like expected, but in the log file, I see a line telling that this syntax is deprecated.

So in the mean while, I will use the old syntax.