<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><configuration name="nibblebill.conf" description="Nibble Billing"><br> <settings><br> <br> <param name="odbc-dsn" value="odbc://freeswitch"/><br> <param name="db_table" value="users"/><br> <param name="db_column_cash" value="balance"/><br> <param name="db_column_account" value="accountcode"/><br> <param name="lowbal_amt" value="5"/><br> <param name="lowbal_action" value="play ding"/><br><br><br> <param name="nobal_amt" value="0"/><br> <param name="nobal_action" value="hangup"/><br><br> <param name="percall_max_amt" value="0"/><br> <param name="percall_action" value="hangup"/><br><br> </settings><br></configuration><br><br></div><div>Here is my default.xml<br><br>include><br> <context name="default"><br> <extension name="unloop"><br><br> <condition field="destination_number" expression="^(1[2-9][0-9]{2}[0-9]{7})$"><br> <variable name="nibble_rate" value="0.03"/>
<br> <variable name="nibble_account" value="45893148"/><br> <action application="bridge" data="sofia/external/1$@168.183.648"/> <br> </condition><br> </extension><br> </context><br></include><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>