[Freeswitch-users] mod_nibblebill hangs up A-Leg and continues dialing B-Leg
Ash
ash at archerdrive.com
Sun Oct 17 19:47:48 PDT 2010
Hi All,
I am trying to setup mod nibble bill to bill based on the B-Leg. I have followed the wiki but have been unable to resolve my issue. I first had this issue with 1.0.6 and tried the latest git version and can reproduce the fault on both versions.
When the customers credit is 0 or below the handset I am using to test gets transferred to the hangup destination and the A-Leg is hungup. After a couple of seconds my mobile will ring and when I answer it there is silence so a one way call leg. As anyone else seen this behaviour?
This is my dialplan that I am outputting to XML Curl.
<?xml version="1.0"?>
<document type="freeswitch/xml">
<section name="dialplan" description="Outbound">
<context name="sip_customerdomain_net_au">
<extension>
<condition field="destination_number" expression="^(04xxxxxxxx)$"/>
<condition field="${toll_mobile}" expression="true">
<action application="export" data="service_id=113"/>
<action application="set" data="effective_caller_id_number=613xxxxxxx"/>
<action application="set" data="privacy_hide_name=1"/>
<action application="bridge" data="{enable_heartbeat_events=5,nibble_rate=1,nibble_account=113}sofia/gateway/primary/614xxxxxxxxx"/>
</condition>
</extension>
</context>
</section>
</document>
<?xml version="1.0"?>
<document type="freeswitch/xml">
<section name="dialplan" description="hangup">
<context name="default">
<extension>
<condition field="destination_number" expression="^(hangup)$">
<action application="log" data="INFO Credit Exceeeded"/>
<action application="hangup"/>
</condition>
</extension>
</context>
</section>
</document>
Here is my nibblebill.conf.xml
<configuration name="nibblebill.conf" description="Nibble Billing">
<settings>
<!-- See http://wiki.freeswitch.org/index.php?title=Mod_nibblebill for help with these options -->
<!-- Information for connecting to your database -->
<param name="db_username" value="switch"/>
<param name="db_password" value="XXXXXXXX"/>
<param name="db_dsn" value="fs_odbc"/>
<!-- The database table where your CASH column is located -->
<param name="db_table" value="services"/>
<!-- The column name where we store the value of the account -->
<param name="db_column_cash" value="credit"/>
<!-- The column name for the unique ID identifying the account -->
<param name="db_column_account" value="id"/>
<!-- Default heartbeat interval. Set to 'off' for no heartbeat (i.e. bill only at end of call) -->
<param name="global_heartbeat" value="60"/>
<!-- By default, warn a caller when their balance is at $5.00. You can set this to a negative number. -->
<param name="lowbal_amt" value="0"/>
<param name="lowbal_action" value="play ding"/>
<!-- By default, terminate a caller when their balance hits $0.00. You can set this to a negative number. -->
<param name="nobal_amt" value="0"/>
<param name="nobal_action" value="nibble_hangup XML default"/>
<!-- If a call goes beyond a certain dollar amount, flag or terminate it -->
<param name="percall_max_amt" value="100"/>
<param name="percall_action" value="hangup"/>
</settings>
</configuration>
Thanks in advance.
Ash.
More information about the FreeSWITCH-users
mailing list