I have changed the changed the dialplan little bit (thank to the
<br>people at IRC #freeswitch) as follows.
<br><br><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="proxy_media=true"/>
<br><action application="bridge"
<br>data="{enable_heartbeat_events=5,nibble_rate=1,nibble_account=${accountcode},absolute_codec_string=g723}sofia/gateway/OMEGA/5544$1"/>
<br></condition>
<br></extension>
<br><br>Here I don't understand enable_heartbeat_events=5. It may be the heartbeat rate.
<br><br><br>Also I am getting this error in FS cli
<br><br><br>2009-12-21 00:37:14.886242 [ERR] sofia_glue.c:2710 AUDIO RTP REPORTS
<br>ERROR: [Missing local host]
<br><br><br><br><br><br><br>On Tue, Dec 22, 2009 at 12:12 AM, jay binks [via freeswitch-users]
<br><<a href="http://n2.nabble.com/user/SendEmail.jtp?type=node&node=4198998&i=0" target="_top" rel="nofollow">[hidden email]</a>> wrote:
<div class='shrinkable-quote'><br>> what did you have to change, to get this working ?
<br>> Jay
<br>>
<br>> On Mon, Dec 21, 2009 at 4:08 PM, Amarakeerthi S <[hidden email]> wrote:
<br>>>
<br>>> Hi,
<br>>>
<br>>> I got it working.
<br>>>
<br>>> Can somebody explain me this error:
<br>>>
<br>>> 2009-12-21 00:37:14.886242 [ERR] sofia_glue.c:2710 AUDIO RTP REPORTS
<br>>> ERROR:
<br>>> [Missing local host]. Also I am confused about heartbeat rate. Is
<br>>> enable_heartbeat_events=5 setting the heartbeat to 5?
<br>>>
<br>>>
<br>>> Thank you in advance,
<br>>>
<br>>>
<br>>>
<br>>>
<br>>> Amarakeerthi S wrote:
<br>>> >
<br>>> > Dear Sir,
<br>>> >
<br>>> > I have successfully installed freeSWITCH and it works fine in
<br>>> > passthrough
<br>>> > mode. I installed nibblebill and it deduct money from the accounts
<br>>> > 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="_top" rel="nofollow">http://wiki.freeswitch.org/index.php?title=Mod_nibblebill</a><br>>> > 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
<br>>> > can
<br>>> > set this to a negative number. -->
<br>>> >
<br>>> >
<br>>> >
<br>>> > <!-- By default, terminate a caller when their balance hits $0.00.
<br>>> > You
<br>>> > can set this to a negative number. -->
<br>>> >
<br>>> >
<br>>> >
<br>>> > <!-- If a call goes beyond a certain dollar amount, flag or
<br>>> > terminate
<br>>> > it
<br>>> > -->
<br>>> >
<br>>> >
<br>>> >
<br>>> > </settings>
<br>>> > </configuration>
<br>>> >
<br>>> > _______________________________________________
<br>>> > FreeSWITCH-users mailing list
<br>>> > [hidden email]
<br>>> > <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_top" rel="nofollow">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>>> > UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_top" rel="nofollow">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>>> > <a href="http://www.freeswitch.org" target="_top" rel="nofollow">http://www.freeswitch.org</a><br>>> >
<br>>> >
<br>>>
<br>>> --
<br>>> View this message in context:
<br>>> <a href="http://n2.nabble.com/Mod-nibblebill-deduct-money-but-no-hangup-at-zero-and-can-call-without-money-in-database-tp4174333p4197038.html" target="_top" rel="nofollow">http://n2.nabble.com/Mod-nibblebill-deduct-money-but-no-hangup-at-zero-and-can-call-without-money-in-database-tp4174333p4197038.html</a><br>>> Sent from the freeswitch-users mailing list archive at Nabble.com.
<br>>>
<br>>> _______________________________________________
<br>>> FreeSWITCH-users mailing list
<br>>> [hidden email]
<br>>> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_top" rel="nofollow">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>>> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_top" rel="nofollow">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>>> <a href="http://www.freeswitch.org" target="_top" rel="nofollow">http://www.freeswitch.org</a><br>>
<br>>
<br>>
<br>> --
<br>> Sincerely
<br>>
<br>> Jay
<br>>
<br>> _______________________________________________
<br>> FreeSWITCH-users mailing list
<br>> [hidden email]
<br>> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_top" rel="nofollow">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_top" rel="nofollow">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>> <a href="http://www.freeswitch.org" target="_top" rel="nofollow">http://www.freeswitch.org</a><br>>
<br>>
<br>> ________________________________
<br>> View message @
<br>> <a href="http://n2.nabble.com/Mod-nibblebill-deduct-money-but-no-hangup-at-zero-and-can-call-without-money-in-database-tp4174333p4198003.html" target="_top" rel="nofollow">http://n2.nabble.com/Mod-nibblebill-deduct-money-but-no-hangup-at-zero-and-can-call-without-money-in-database-tp4174333p4198003.html</a><br>> To unsubscribe from Re: Mod nibblebill deduct money but no hangup at zero
<br>> and can call without money in database, click here.
<br>>
<br></div>
<br><hr align="left" width="300">
View this message in context: <a href="http://n2.nabble.com/Mod-nibblebill-deduct-money-but-no-hangup-at-zero-and-can-call-without-money-in-database-tp4174333p4198998.html">Re: [Freeswitch-users] Mod nibblebill deduct money but no hangup at zero and can call without money in database</a><br>
Sent from the <a href="http://n2.nabble.com/freeswitch-users-f2379917.html">freeswitch-users mailing list archive</a> at Nabble.com.<br>