[Asterisk-Users] Limit call length, whisper time remaining?

Michael Manousos manousos at inaccessnetworks.com
Fri May 16 06:30:27 MST 2003


Tilghman Lesher wrote:
> 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.

This one will set a time limit on the current active channel.
What if you want to set a limit on an outgoing call
(the one that is spawned with "Dial") without a restriction
on the current channel?

Michael.

> 
> -Tilghman
> 
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users





More information about the asterisk-users mailing list