<div dir="ltr">Stanislav, IT IS possible to make call longer by using sched_del and fire agian sched_hangup.<br><br>This is the peace of code that works for me. <br><pre style="margin:0px;padding:0px;font-family:Consolas,Menlo,"Liberation Mono",Courier,monospace;font-size:12px;line-height:1.4;color:rgb(51,51,51);font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;word-spacing:0px;background-color:rgb(255,255,255)"><span class="" style="color:rgb(187,136,68)"><br></span></pre><pre style="margin:0px;padding:0px;font-family:Consolas,Menlo,"Liberation Mono",Courier,monospace;font-size:12px;line-height:1.4;color:rgb(51,51,51);font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;word-spacing:0px;background-color:rgb(255,255,255)"><span class="" style="font-weight:bold">var</span> <span class="">cmd</span> <span class="" style="font-weight:bold">=</span> <span class="" style="color:rgb(187,136,68)">'sched_del '</span><span class="" style="font-weight:bold">+</span> <span class="">channel</span><span class="">;</span>
<a name="cl-211" style="color:rgb(53,114,176);text-decoration:none"></a>                                 
<a name="cl-212" style="color:rgb(53,114,176);text-decoration:none"></a><span class="">client</span><span class="">.</span><span class="">conn</span><span class="">.</span><span class="">bgapi</span><span class="">(</span><span class="">cmd</span><span class="">,</span> <span class="" style="font-weight:bold">function</span><span class="">(</span><span class="">event</span><span class="">){</span>
<a name="cl-213" style="color:rgb(53,114,176);text-decoration:none"></a> <span class="">cmd</span> <span class="" style="font-weight:bold">=</span> <span class="" style="color:rgb(187,136,68)">"sched_hangup +"</span><span class="" style="font-weight:bold">+</span> <span class="">timeout</span> <span class="" style="font-weight:bold">+</span> <span class="" style="color:rgb(187,136,68)">" "</span> <span class="" style="font-weight:bold">+</span> <span class="">channel</span><span class="">;</span>
<a name="cl-215" style="color:rgb(53,114,176);text-decoration:none"></a> <span class="">client</span><span class="">.</span><span class="">conn</span><span class="">.</span><span class="">bgapi</span><span class="">(</span><span class="">cmd</span><span class="">,</span> <span class="" style="font-weight:bold">function</span><span class="">(</span><span class="">event</span><span class="">){</span>
<a name="cl-217" style="color:rgb(53,114,176);text-decoration:none"></a>        <span class="">console</span><span class="">.</span><span class="">log</span><span class="">(</span><span class="">event</span><span class="">.</span><span class="">getBody</span><span class="">());</span>
<a name="cl-218" style="color:rgb(53,114,176);text-decoration:none"></a> }<span class="">);</span>
<a name="cl-219" style="color:rgb(53,114,176);text-decoration:none"></a>}<span class="">);</span></pre></div><div class="gmail_extra"><br><div class="gmail_quote">2015-06-10 15:00 GMT+06:00 Kamil Nigmatullin <span dir="ltr"><<a href="mailto:kamil.nigmatullin@gmail.com" target="_blank">kamil.nigmatullin@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Yes, maybe, I didn't try make it longer.<br></div><div class="gmail_extra"><div><div class="h5"><br><div class="gmail_quote">2015-06-10 14:37 GMT+06:00 Stanislav Sinyagin <span dir="ltr"><<a href="mailto:ssinyagin@gmail.com" target="_blank">ssinyagin@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">well, you're anyway already sending some commands to set or change the<br>
scheduler, so why not also stopping the calls from external<br>
application.<br>
<br>
The current API only allows adding and removing tasks -- you can<br>
search through the source code yourself. There's no such function as<br>
modifying an existing scheduled task.<br>
<div><div><br>
<br>
<br>
On Wed, Jun 10, 2015 at 9:46 AM, Vlad Fabi <<a href="mailto:vaad.fabi@gmail.com" target="_blank">vaad.fabi@gmail.com</a>> wrote:<br>
> 2 Stanislav Sinyagin,<br>
> This mean you should need additionaly scheduler application at external<br>
> side, that controls active calls durations updates and send only session<br>
> kill to FS. I think such functionality is better to processed by FS side.<br>
><br>
> 2 Kamil Nigmatullin,<br>
> Maybe you remember some keywords ?<br>
><br>
> On Wed, Jun 10, 2015 at 5:26 AM, Kamil Nigmatullin<br>
> <<a href="mailto:kamil.nigmatullin@gmail.com" target="_blank">kamil.nigmatullin@gmail.com</a>> wrote:<br>
>><br>
>> I dont remember how this variable was called but there was defenetly the<br>
>> way to reschedule hangup during call via esl.<br>
>><br>
>> 10 июня 2015 г. 3:03 пользователь "Stanislav Sinyagin"<br>
>> <<a href="mailto:ssinyagin@gmail.com" target="_blank">ssinyagin@gmail.com</a>> написал:<br>
>><br>
>>> you can control your calls from an external application via ESL and do<br>
>>> uuid_kill when needed. Then you don't have to rely on timers inside<br>
>>> FreeSWITCH.<br>
>>><br>
>>> On Tue, Jun 9, 2015 at 10:23 PM, Vlad Fabi <<a href="mailto:vaad.fabi@gmail.com" target="_blank">vaad.fabi@gmail.com</a>> wrote:<br>
>>> > As a workaround it's ok, but for production billing solution not<br>
>>> > sure...<br>
>>> > Anyway thx for help<br>
>>> ><br>
>>> > On Tue, Jun 9, 2015 at 7:34 PM, Dušan Dragić <<a href="mailto:dragic.dusan@gmail.com" target="_blank">dragic.dusan@gmail.com</a>><br>
>>> > wrote:<br>
>>> >><br>
>>> >> There isn't a way to increase or decrease the time but you can delete<br>
>>> >> the scheduled task with sched_del (find the task id with show tasks)<br>
>>> >> and recreate it with sched_hangup.<br>
>>> >><br>
>>> >> On 9 June 2015 at 16:01, Vlad Fabi <<a href="mailto:vaad.fabi@gmail.com" target="_blank">vaad.fabi@gmail.com</a>> wrote:<br>
>>> >> > Hi all,<br>
>>> >> > Is it possible during active call with set sched_hangup value change<br>
>>> >> > this<br>
>>> >> > value to increase\decrease active call duration ? Or maybe there is<br>
>>> >> > another<br>
>>> >> > elegant solution to manipulate active call duration.<br>
>>> >> ><br>
>>> >> > Thx<br>
>>> >> ><br>
>>> >> ><br>
>>> >> ><br>
>>> >> > _________________________________________________________________________<br>
>>> >> > Professional FreeSWITCH Consulting Services:<br>
>>> >> > <a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
>>> >> > <a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
>>> >> ><br>
>>> >> > Official FreeSWITCH Sites<br>
>>> >> > <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
>>> >> > <a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
>>> >> > <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
>>> >> ><br>
>>> >> > FreeSWITCH-users mailing list<br>
>>> >> > <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
>>> >> > <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
>>> >> ><br>
>>> >> > UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
>>> >> > <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
>>> >><br>
>>> >><br>
>>> >><br>
>>> >> --<br>
>>> >> Dušan Dragić<br>
>>> >><br>
>>> >><br>
>>> >> _________________________________________________________________________<br>
>>> >> Professional FreeSWITCH Consulting Services:<br>
>>> >> <a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
>>> >> <a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
>>> >><br>
>>> >> Official FreeSWITCH Sites<br>
>>> >> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
>>> >> <a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
>>> >> <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
>>> >><br>
>>> >> FreeSWITCH-users mailing list<br>
>>> >> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
>>> >> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
>>> >><br>
>>> >> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
>>> >> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
>>> ><br>
>>> ><br>
>>> ><br>
>>> ><br>
>>> > _________________________________________________________________________<br>
>>> > Professional FreeSWITCH Consulting Services:<br>
>>> > <a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
>>> > <a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
>>> ><br>
>>> > Official FreeSWITCH Sites<br>
>>> > <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
>>> > <a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
>>> > <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
>>> ><br>
>>> > FreeSWITCH-users mailing list<br>
>>> > <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
>>> > <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
>>> ><br>
>>> > UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
>>> > <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
>>><br>
>>> _________________________________________________________________________<br>
>>> Professional FreeSWITCH Consulting Services:<br>
>>> <a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
>>> <a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
>>><br>
>>> Official FreeSWITCH Sites<br>
>>> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
>>> <a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
>>> <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
>>><br>
>>> FreeSWITCH-users mailing list<br>
>>> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
>>> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
>>> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
>>> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
>><br>
>><br>
>> _________________________________________________________________________<br>
>> Professional FreeSWITCH Consulting Services:<br>
>> <a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
>> <a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
>><br>
>> Official FreeSWITCH Sites<br>
>> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
>> <a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
>> <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
>><br>
>> FreeSWITCH-users mailing list<br>
>> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
>> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
>> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
>> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
><br>
><br>
><br>
> _________________________________________________________________________<br>
> Professional FreeSWITCH Consulting Services:<br>
> <a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
> <a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
><br>
> Official FreeSWITCH Sites<br>
> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
> <a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
> <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
><br>
> FreeSWITCH-users mailing list<br>
> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a></div></div></blockquote></div><br><br clear="all"><br></div></div><span class="HOEnZb"><font color="#888888">-- <br></font></span><div><div dir="ltr"><span class="HOEnZb"><font color="#888888">Kamil Nigmatullin<br>Tel: 77272323748</font></span><span class=""><br>mob: 7 <a href="tel:%28707%29%202517003" value="+17072517003" target="_blank">(707) 2517003</a><br>Skype: kamil.nigmatullin</span></div></div>
</div>
</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature"><div dir="ltr">Kamil Nigmatullin<br>Tel: 77272323748<br>mob: 7 (707) 2517003<br>Skype: kamil.nigmatullin</div></div>
</div>