mod_nibblebill hangs up A-Leg and continues dialing B-Leg
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.
On Mon, Oct 18, 2010 at 3:47 AM, Ash <ash@archerdrive.com> wrote:
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?
Yup, I believe this is normal for NibbleBill... we worked around it by checking the balance before attempting to make the call.
Cheers, Thanks for your reply. I did the exact same thing after I wrote this email via xml curl. Reading the wiki I took the assumption that if the credit limit was below nobal_amt then it would not allow the call. Ash. On 20/10/2010, at 4:44 AM, Dan Lane wrote:
On Mon, Oct 18, 2010 at 3:47 AM, Ash <ash@archerdrive.com> wrote:
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?
Yup, I believe this is normal for NibbleBill... we worked around it by checking the balance before attempting to make the call.
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
On Monday 18 October 2010 05:47:48 Ash wrote:
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?
I have seen this problem long ago. I have replaced 1 line in a code. It is not assured that this correct decision, but for me it works. some strings from my patch to mod_nibblebill.c: switch_ivr_media(uuid, SMF_REBRIDGE); /* Transfer the A leg */ - switch_ivr_session_transfer(session, argv[0], argv[1], argv[2]); +// switch_ivr_session_transfer(session, argv[0], argv[1], argv[2]); + switch_channel_hangup(channel, SWITCH_CAUSE_NORMAL_CLEARING); free(mydup); }
participants (3)
-
Ash
-
Dan Lane
-
Yuriy Ivzhenko