[Freeswitch-users] Mod_nibblebill doesn't terminate call

Aqs Younas aqsyounas at gmail.com
Thu Sep 18 22:39:44 MSD 2014


Hi,

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.

Here is my nibblebill.conf.xml file.

<configuration name="nibblebill.conf" description="Nibble Billing">
  <settings>

    <param name="odbc-dsn" value="odbc://freeswitch"/>
    <param name="db_table" value="users"/>
    <param name="db_column_cash" value="balance"/>
    <param name="db_column_account" value="accountcode"/>
    <param name="lowbal_amt" value="5"/>
    <param name="lowbal_action" value="play ding"/>


    <param name="nobal_amt" value="0"/>
    <param name="nobal_action" value="hangup"/>

    <param name="percall_max_amt" value="0"/>
    <param name="percall_action" value="hangup"/>

  </settings>
</configuration>

Here is my default.xml

include>
  <context name="default">
   <extension name="unloop">

   <condition field="destination_number"
expression="^(1[2-9][0-9]{2}[0-9]{7})$">
          <variable name="nibble_rate" value="0.03"/>
          <variable name="nibble_account" value="45893148"/>
          <action application="bridge"
data="sofia/external/1$@168.183.648"/>
    </condition>
  </extension>
  </context>
</include>

Could Someone please tell me why mod_nibblebill is not terminating call but
accounts call perfectly.

(if a user balance is below or at zero(0) mob_nibblebill let them call and
after call sets balance to negative value)

Thanks In Advance.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20140918/0cca4ce4/attachment.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list