You&#39;ll want to combine this with execute_on_answer. Possibly from a script calcuating duration from rate and balance.<div><div><br></div><div>But I agree with Mike - nibble bill is designed for exactly this problem and handles the multiple calls case too.</div>
<div><br></div><div><br></div><div><br><br>On Wednesday, September 18, 2013, Ken Rice  wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div>
<font face="Monaco, Courier New"><span style="font-size:11pt">See <a href="http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_sched_hangup" target="_blank">http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_sched_hangup</a><br>

<br>
On 9/18/13 9:53 AM, &quot;Dmitry Mordovin&quot; &lt;<a href="http://d.mordovin@dwide.com" target="_blank">d.mordovin@dwide.com</a>&gt; wrote:<br>
<br>
</span></font><blockquote><font face="Monaco, Courier New"><span style="font-size:11pt">  <font color="#000099"> Hello!<br>
 <br>
 Is there any way to limit duration (set max-duration) for outgoing calls?<br>
 <br>
 I try to configure calling card platform, so, i need limit users depend on his account balance.<br>
 <br>
 PS: duration limit must counting since answer received (legs becomes connected)<br>
 <br>
 Thank you!<br>
 <br>
 <br>
<hr align="CENTER" size="3" width="95%"></font></span></font><font><font face="Consolas, Courier New, Courier"><span style="font-size:10pt">_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="http://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>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.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://wiki.freeswitch.org" target="_blank">http://wiki.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="http://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>
</span></font></font></blockquote><font><font face="Consolas, Courier New, Courier"><span style="font-size:10pt"><br>
</span></font></font><font face="Monaco, Courier New"><span style="font-size:11pt">-- <br>
Ken<br>
<font color="#0000FF"><u><a href="http://www.FreeSWITCH.org" target="_blank">http://www.FreeSWITCH.org</a><br>
<a href="http://www.ClueCon.com" target="_blank">http://www.ClueCon.com</a><br>
<a href="http://www.OSTAG.org" target="_blank">http://www.OSTAG.org</a><br>
</u></font><a href="http://irc.freenode.net" target="_blank">irc.freenode.net</a> #freeswitch<br>
</span></font>
</div>


</blockquote></div></div>