[Freeswitch-users] Mod nibblebill deduct money but no hangup at zero and can call without money in database

ram talk2ram at gmail.com
Thu Dec 17 02:29:10 PST 2009


Hi

Look at Contrib of source

http://svn.freeswitch.org/svn/freeswitch/trunk/contrib/diegoviola/

some pre-paid examples

Ram

On Wed, Dec 16, 2009 at 12:27 AM, Senaka Amarakeerthi
<senakahks at gmail.com>wrote:

> 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>
>
> _______________________________________________
> 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/20091217/9e1ae678/attachment-0002.html 


More information about the FreeSWITCH-users mailing list