Re: Share available call duration among calls
On Tue, Jul 21, 2015 at 10:44 AM, Paul Chitescu <paulc@...> wrote:
> To change the timeout you can use a chan.control message:
> A timeout value of zero disables the timeout. You can reenable it by setting a
> new non-zero value.
> This message can also change the maxcall and maxpdd (only if the call wasn't
> already answered).
That's great, I'll change my code to set timeout to a split second
after my internal code drops the call, so I have a safety net. Just
one question, to avoid having to dig into the code. The new timeout (
when not zero ) is from the begining of the call or from the
Currently, if I have, say, 1000sec allowed time when I make a call I
send timeout=(1000+30+5)*1000 and maxcall=30*1000, to allow for a 30
second ring and a 5 second margin for my script to to the real
dropping, and set my timers to drop it at 35s before answering and
1005s after receiving the answer. If, 200 seconds after first call is
answered, another call comes I send the second one with
timeout=(800+30+5)*1000, maxcall=30 ( 1st call already got 200, but I
do not split 800 between the two calls as I do not know if one of them
is going to end right away, and my timers take this into account ).
With what you've told me, assuming the calls are answered immediately
for diacussion, I could send the first call with 1000, then at the 200
point update it's timeout with chan.control to 400 or 200+400 and
send the second one with a 400 timeout, and if the 1st calls ends
after 100 more seconds ( 300 ) , chan.control update the second one to
600 or 100+600, this is why I need to know where the updated timeout
is referenced from ( although from a quick look I'll assume is
relative to start of call and can test it ).
Thanks for the info.