<div dir="ltr">Hi All, <div><br></div><div>I am writing a billing engine in AGI. My scenario is :</div><div><br></div><div>One customer can have simultaneous calls and I need to hang up one customer&#39;s all call when balance reaches 0</div>

<div><br></div><div>If I set limit for each call using &#39;L&#39; in dial command, lets say 5 minutes in accordance with remaining credit and connect the call, few seconds later a 2nd call comes in and the first call is still in progress. If I permit the same 5 minutes as per this formula and both calls remains connected for the next 5 minutes then credit will go in minus which is not acceptable. </div>

<div><br></div><div>One option is to charge credit via AMI and as soon as the credit goes 0, hangup all calls for this customer.</div><div><br></div><div>Is there any other way to achieve this ?</div><div>  </div><div><br clear="all">

<div dir="ltr">Regards,<br>Zohair Raza<div><br></div></div>
</div></div>