Hi, I got it working. Can somebody explain me this error: 2009-12-21 00:37:14.886242 [ERR] sofia_glue.c:2710 AUDIO RTP REPORTS ERROR: [Missing local host]. Also I am confused about heartbeat rate. Is enable_heartbeat_events=5 setting the heartbeat to 5? Thank you in advance, Amarakeerthi S 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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- View this message in context: http://n2.nabble.com/Mod-nibblebill-deduct-money-but-no-hangup-at-zero-and-c... Sent from the freeswitch-users mailing list archive at Nabble.com.