<div>Hello There,<br></div><div><br></div><div>No the existing billing not solving my problem. Because of custom project, it for many channels when gets connected it becomes 1 call and then it needs to check the balance and also deduct the balance when the call is connected.</div>
<div><br></div><div>If the balance is 0 or -0 FS trigger the call drop. I build the whole billing using Javascript but i cant find any resource where i can say while call running, allow me to negotiate with my alternative pipe line.</div>
<div><br></div><div>Code example: </div><div>... connected call .. voice will now get freezed.....</div><div>      default:<br>             module = EYE_HELPER +  &quot;________FAIL__________&quot;;<br>         break;<br>
}<br></div><div>while(session.state == &quot;CS_EXECUTE&quot;) { i++; if (i &gt; 1000) { console_log(&#39;err&#39;, &#39;.&#39;); i=0;  }  // here i wanted to go to my BALANCE module, But whole fs_cli gets FREEZED. }</div>
<div><br></div><div><br></div><div>Already tried those, but FS gets freezed:</div><div>========================</div><div>CS_NEW        Channel is newly created.<br>CS_INIT        Channel has been initialized.<br>CS_ROUTING        Channel is looking for an extension to execute.<br>
CS_SOFT_EXECUTE        Channel is ready to execute from 3rd party control.<br>CS_EXECUTE        Channel is executing its dialplan.<br>CS_EXCHANGE_MEDIA        Channel is exchanging media with another channel.<br>CS_PARK        Channel is accepting media awaiting commands.<br>
CS_CONSUME_MEDIA        Channel is consuming all media and dropping it.<br>CS_HIBERNATE        Channel is in a sleep state.<br>CS_RESET        Channel is in a reset state.<br>CS_HANGUP        Channel is flagged for hangup and ready to end. Media will now end, and no further call routing will occur.<br>
CS_REPORTING        The channel is already hung up, media is already down, and now it&#39;s time to do any sort of reporting processes such as CDR logging.<br>CS_DESTROY        Channel is ready to be destroyed and out of the state machine. Memory pools are returned to the core and utilized memory from the channel is freed.<br>
</div><div><br></div><div><br></div><div>Please guide kindly....</div><div><br></div><div>Thanks &amp; Regards</div><div><br></div>
<br><br>