<param name="nobal_action" value="hangup XML default"/> It's a dialplan transfer, you need the XML and context name, and an extension to handle it. On 18 September 2014 19:39, Aqs Younas <aqsyounas@gmail.com> wrote:
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.
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
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