[Freeswitch-users] Mod nibblebill - no hangup and can call without money in database
sky1975
senakahks at gmail.com
Tue Dec 15 18:28:51 PST 2009
Dear Sir,
I have successfully installed freeSWITCH and it works fine in passthrough
mode. I installed nibblebill and it deduct money from the accounts database
and it works fine. but I have two problems.
1. Calls can be initiated even though there is a minus value in accounts
database
2. Calls doesn't hangup when it goes to minus values.
Any answers are greatly appreciated.
This is my dialplan:
<action application="nibblebill" data="flush"/>
<extension name="hangup">
<condition field="destination_number" expression="^(hangup)$">
<action application="playback" data="no_more_funds.wav"/>
<action application="hangup"/>
</condition>
</extension>
<extension name="Omega_Out">
<condition field="caller_id_number" expression="^(\d{4})$"/>
<condition field="destination_number" expression="^(\d{11})$">
<action application="set" data="nibble_rate=0.0448"/>
<action application="set" data="nibble_account=${accountcode}"/>
<action application="set" data="bypass_media=true"/>
<action application="bridge"
data="{absolute_codec_string=g729}sofia/gateway/OMEGA/5544$1"/>
</condition>
</extension>
This is the configuration file;
<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 -->
<!-- The database table where your CASH column is located -->
<!-- The column name where we store the value of the account -->
<!-- The column name for the unique ID identifying the account -->
<!-- Default heartbeat interval. Set to 'off' for no heartbeat (i.e.
bill only at end of call) -->
<!-- By default, warn a caller when their balance is at $5.00. You can
set this to a negative number. -->
<!-- By default, terminate a caller when their balance hits $0.00. You
can set this to a negative number. -->
<!-- If a call goes beyond a certain dollar amount, flag or terminate it
-->
</settings>
</configuration>
--
View this message in context: http://n2.nabble.com/Mod-nibblebill-no-hangup-and-can-call-without-money-in-database-tp4173535p4173535.html
Sent from the freeswitch-users mailing list archive at Nabble.com.
More information about the FreeSWITCH-users
mailing list