[Asterisk-Users] Limit call length, whisper time remaining?
Tilghman Lesher
tilghman at mail.jeffandtilghman.com
Fri May 16 06:18:39 MST 2003
On Friday 16 May 2003 07:20, Michael Manousos wrote:
> Garry Adkins wrote:
> > I can't figure out any way to limit the call length and
> > terminate the call forcibly if necessary.
>
> This is, indeed, an extremely nice thing to have. Doing some
> code browsing, it seems that Asterisk already has this
> capability. The struct of each channel has a "whentohangup"
> (time_t type) variable. An absolute timestamp can be stored in
> there and when the current time exceeds this timestamp, the
> channel will be released.
>
> The problem is that (possibly) there is no way to set this
> timestamp from inside the extensions.conf, e.g. when you place
> the call with "Dial" application. If, indeed, there is no such
> capability, then an additional parameter in "Dial" will do the
> job. This extra parameter could be, for example, the call
> duration. (Mark?) I could also add it myself and post a patch,
> if this is the right way to do it and not already implemented
tweedledee*CLI> show application absolutetimeout
-= Info about application 'AbsoluteTimeout' =-
[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. Always returns
0.
-Tilghman
More information about the asterisk-users
mailing list