[Freeswitch-users] Mod_nibblebill doesn't terminate call
Aqs Younas
aqsyounas at gmail.com
Fri Sep 19 01:29:03 MSD 2014
Sorry Still i am unable to terminate calls.Here are both files.
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 XML default"/>
<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>
<extension name="hangup">
<condition field="destination_number" expression="^(hangup)$">
<action application="hangup"/>
</condition>
</extension>
</context>
</include>
Any Suggestion :(
On 19 September 2014 01:33, Aqs Younas <aqsyounas at gmail.com> wrote:
> Thanks for your reply..i try it and get back to you.
> Many thanks
>
> On 19 September 2014 01:14, Steven Ayre <steveayre at gmail.com> wrote:
>
>> <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 at 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 at freeswitch.org
>>> http://www.freeswitchsolutions.com
>>>
>>> Official FreeSWITCH Sites
>>> http://www.freeswitch.org
>>> http://confluence.freeswitch.org
>>> http://www.cluecon.com
>>>
>>>
>>>
>>>
>>> FreeSWITCH-users mailing list
>>> FreeSWITCH-users at lists.freeswitch.org
>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>>> http://www.freeswitch.org
>>>
>>
>>
>> _________________________________________________________________________
>> Professional FreeSWITCH Consulting Services:
>> consulting at freeswitch.org
>> http://www.freeswitchsolutions.com
>>
>> Official FreeSWITCH Sites
>> http://www.freeswitch.org
>> http://confluence.freeswitch.org
>> http://www.cluecon.com
>>
>>
>>
>>
>> FreeSWITCH-users mailing list
>> FreeSWITCH-users at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> http://www.freeswitch.org
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20140919/d4e76083/attachment.html
Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users
mailing list