<div>Hi</div>
<div> </div>
<div>Look at Contrib of source</div>
<div> </div>
<div><a href="http://svn.freeswitch.org/svn/freeswitch/trunk/contrib/diegoviola/">http://svn.freeswitch.org/svn/freeswitch/trunk/contrib/diegoviola/</a></div>
<div> </div>
<div>some pre-paid examples</div>
<div> </div>
<div>Ram<br><br></div>
<div class="gmail_quote">On Wed, Dec 16, 2009 at 12:27 AM, Senaka Amarakeerthi <span dir="ltr"><<a href="mailto:senakahks@gmail.com">senakahks@gmail.com</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">Dear Sir,<br><br>I have successfully installed freeSWITCH and it works fine in passthrough<br>mode. I installed nibblebill and it deduct money from the accounts database<br>
and it works fine. but I have two problems.<br><br>1. Calls can be initiated even though there is a minus value in accounts<br>database<br><br>2. Calls doesn't hangup when it goes to minus values.<br><br>Any answers are greatly appreciated.<br>
<br>This is my dialplan:<br><br><br><action application="nibblebill" data="flush"/><br><extension name="hangup"><br> <condition field="destination_number" expression="^(hangup)$"><br>
<action application="playback" data="no_more_funds.wav"/><br> <action application="hangup"/><br> </condition><br></extension><br> <extension name="Omega_Out"><br>
<condition field="caller_id_number" expression="^(\d{4})$"/><br><condition field="destination_number" expression="^(\d{11})$"><br><action application="set" data="nibble_rate=0.0448"/><br>
<action application="set" data="nibble_account=${accountcode}"/><br><action application="set" data="bypass_media=true"/><br><action application="bridge"<br>
data="{absolute_codec_string=g729}sofia/gateway/OMEGA/5544$1"/><br></condition><br></extension><br><br><br><br>This is the configuration file;<br><br><configuration name="nibblebill.conf" description="Nibble Billing"><br>
<settings><br> <!-- See <a href="http://wiki.freeswitch.org/index.php?title=Mod_nibblebill" target="_blank">http://wiki.freeswitch.org/index.php?title=Mod_nibblebill</a> for<br>help with these options --><br>
<br> <!-- Information for connecting to your database --><br><br><br><br><br> <!-- The database table where your CASH column is located --><br><br><br> <!-- The column name where we store the value of the account --><br>
<br><br> <!-- The column name for the unique ID identifying the account --><br><br><br><br> <!-- Default heartbeat interval. Set to 'off' for no heartbeat (i.e.<br>bill only at end of call) --><br>
<br><br> <!-- By default, warn a caller when their balance is at $5.00. You can<br>set this to a negative number. --><br><br><br><br> <!-- By default, terminate a caller when their balance hits $0.00. You<br>
can set this to a negative number. --><br><br><br><br> <!-- If a call goes beyond a certain dollar amount, flag or terminate it<br>--><br><br><br><br> </settings><br></configuration><br><br>_______________________________________________<br>
FreeSWITCH-users mailing list<br><a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br><a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a><br>
</blockquote></div><br>