<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:12pt"><div class="" style="">Dear All.</div><div class="" style=""><br class="" style=""></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;" class="">When i do a call to a external number like my cellphone and&nbsp;<span style="background-color: transparent;" class="">If nibble_account have a balance equal to 0 the calls is tranfered to hangup context, it's works fine.</span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;" class=""><br class="" style=""></div><div style="color: rgb(0, 0, 0); font-size:
 16px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;" class="">But my mobile number ring and if I answer and then hangup nibblebill reduces the balance anyway</div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;" class=""><br class="" style=""></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;" class="">I tried with&nbsp;ignore_early_media=true but not works</div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;" class=""><br
 class="" style=""></div><div style="background-color: transparent;" class="">&nbsp;&lt;extension name="Todo_Chile"&gt;</div><div style="background-color: transparent;" class="">&nbsp; &nbsp; &nbsp; &lt;condition field="destination_number" expression="^([2-9]\d{8})$"&gt;</div><div class="" style="">&nbsp; &nbsp; &nbsp; &lt;action application="set" data="hangup_after_bridge=true"/&gt;<br class="" style=""></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;" class="">&nbsp; &nbsp; &nbsp;&lt;action application="set" data="continue_on_fail=true"/&gt;</div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;" class=""><span style="background-color: transparent; font-size:
 12pt;" class="">&nbsp; &nbsp; &nbsp;</span><span class="" style="background-color: transparent; font-size: 12pt;">&lt;action application="lcr" data="$1 pg_prefix2"/&gt;</span><br class="" style=""></div><div style="background-color: transparent;" class="">&nbsp; &nbsp; &nbsp;&lt;action application="set" data="nibble_account=${accountcode}"/&gt;</div><div style="background-color: transparent;" class="">&nbsp; &nbsp; &nbsp;&lt;action application="set" data="nibble_rate=${lcr_rate_1}"/&gt;</div><div style="background-color: transparent;" class="">&nbsp; &nbsp; &nbsp; &lt;action application="set" data="nobal_amt=0"/&gt;</div><div style="background-color: transparent;" class="">&nbsp; &nbsp; &nbsp; &lt;action application="set" data="lowbal_amt=0"/&gt;</div><div class="" style="">&nbsp; &nbsp; &nbsp;&nbsp;&lt;action application="bridge" data="
 {ignore_early_media=true,nibble_account=2,nibble_rate=35,nobal_amt=0,lowbal_amt=0}sofia/gateway/${lcr_carrier_1}/0$1"/&gt;</div><div style="background-color: transparent;" class="">&nbsp;<span style="background-color: transparent;" class="">&lt;extension name="hangup"&gt;</span></div><div style="background-color: transparent;" class="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;condition field="destination_number" expression="^(hangup)$"&gt;</div><div style="background-color: transparent;" class="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;action application="log" data="Limit de Credit Exceded !!!!!!!!"/&gt;</div><div style="background-color: transparent;" class="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;!--&lt;action application="playback" data="no_more_funds.wav"/&gt;--&gt;</div><div style="background-color: transparent;" class="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;action application="hangup"/&gt;</div><div style="background-color:
 transparent;" class="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/condition&gt;</div><div style="background-color: transparent;" class="">&nbsp; &nbsp; &nbsp; &nbsp; &lt;/extension&gt;</div><div class="" style=""><br class="" style=""></div><div class="" style="">I tried with lcr_auto_route&nbsp;<span style="font-size: 12pt;" class="">but does not work too</span><br class="" style=""></div><div class="" style=""><span style="font-size: 12pt;" class=""><br class="" style=""></span></div><div class="" style=""><span class="" style="">&lt;action application="bridge" data="${lcr_auto_route}"/&gt;<br class="" style=""></span></div><div class="" style=""><span class="" style=""><br class="" style=""></span></div><div class="" style=""><span class="" style="">As you can see :</span></div><div class="" style=""><span class="" style=""><br class="" style=""></span></div><div class="" style=""><span class="" style=""><div class="" style="">2014-09-13 10:17:49.246372
 [DEBUG] mod_nibblebill.c:563 Billing $2.193306 to 2 (Call: 381bd4f6-5ccf-4f67-a801-cfac03319639 / 0.000000 so far)</div><div class="" style="">2014-09-13 10:17:49.246372 [DEBUG] mod_nibblebill.c:393 Doing update query</div><div class="" style="">[UPDATE auth_user SET saldo=saldo-2.193306 WHERE id='2']</div><div class="" style=""><br class="" style=""></div></span></div><div class="" style=""><span class="" style="">my complete log &nbsp;</span><a href="http://pastebin.freeswitch.org/23282" style="font-size: 12pt;" class="">http://pastebin.freeswitch.org/23282</a></div><div class="" style=""><span class="" style=""><br class="" style=""></span></div><div class="" style=""><span class="" style="">What i doing wrong?&nbsp;</span></div><div class="" style=""><span class="" style=""><br></span></div><div class="" style=""><br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida
 Grande', sans-serif; background-color: transparent; font-style: normal;" class=""><br class="" style=""></div></div></body></html>