<div dir="ltr"><div>Hi,<br><br></div><div>I am new to freeswitch, i am using mod_nibblebill for billing of realtime calls.It works perfectly, detects correct balance after the completion of call and performs update query on database.What difficulty I am facing now is that mod_nibblebill does not terminate call even when user balance is below zero(0) or is zero(0), which I have specified in my xml file.<br><br></div><div>Here is my nibblebill.conf.xml file.<br></div><div><div><br>&lt;configuration name=&quot;nibblebill.conf&quot; description=&quot;Nibble Billing&quot;&gt;<br>  &lt;settings&gt;<br>    <br>    &lt;param name=&quot;odbc-dsn&quot; value=&quot;odbc://freeswitch&quot;/&gt;<br>    &lt;param name=&quot;db_table&quot; value=&quot;users&quot;/&gt;<br>    &lt;param name=&quot;db_column_cash&quot; value=&quot;balance&quot;/&gt;<br>    &lt;param name=&quot;db_column_account&quot; value=&quot;accountcode&quot;/&gt;<br>    &lt;param name=&quot;lowbal_amt&quot; value=&quot;5&quot;/&gt;<br>    &lt;param name=&quot;lowbal_action&quot; value=&quot;play ding&quot;/&gt;<br><br><br>    &lt;param name=&quot;nobal_amt&quot; value=&quot;0&quot;/&gt;<br>    &lt;param name=&quot;nobal_action&quot; value=&quot;hangup&quot;/&gt;<br><br>    &lt;param name=&quot;percall_max_amt&quot; value=&quot;0&quot;/&gt;<br>    &lt;param name=&quot;percall_action&quot; value=&quot;hangup&quot;/&gt;<br><br>  &lt;/settings&gt;<br>&lt;/configuration&gt;<br><br></div><div>Here is my default.xml<br><br>include&gt;<br>  &lt;context name=&quot;default&quot;&gt;<br>   &lt;extension name=&quot;unloop&quot;&gt;<br><br>   &lt;condition field=&quot;destination_number&quot; expression=&quot;^(1[2-9][0-9]{2}[0-9]{7})$&quot;&gt;<br>          &lt;variable name=&quot;nibble_rate&quot; value=&quot;0.03&quot;/&gt;
<br>          &lt;variable name=&quot;nibble_account&quot; value=&quot;45893148&quot;/&gt;<br>          &lt;action application=&quot;bridge&quot; data=&quot;sofia/external/1$@168.183.648&quot;/&gt;    <br>    &lt;/condition&gt;<br>  &lt;/extension&gt;<br>  &lt;/context&gt;<br>&lt;/include&gt;<br><br></div><div>Could Someone please tell me why mod_nibblebill is not terminating call but accounts call perfectly.<br><br></div><div>(if a user balance is below or at zero(0) mob_nibblebill let them call and after call sets balance to negative value)<br></div><div><br>Thanks In Advance.<br></div></div></div>