[Freeswitch-users] Mod nibblebill deduct money but no hangup at zero and can call without money in database
Amarakeerthi S
senakahks at gmail.com
Mon Dec 21 07:36:31 PST 2009
I have changed the changed the dialplan little bit (thank to the
people at IRC #freeswitch) as follows.
<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="proxy_media=true"/>
<action application="bridge"
data="{enable_heartbeat_events=5,nibble_rate=1,nibble_account=${accountcode},absolute_codec_string=g723}sofia/gateway/OMEGA/5544$1"/>
</condition>
</extension>
Here I don't understand enable_heartbeat_events=5. It may be the heartbeat rate.
Also I am getting this error in FS cli
2009-12-21 00:37:14.886242 [ERR] sofia_glue.c:2710 AUDIO RTP REPORTS
ERROR: [Missing local host]
On Tue, Dec 22, 2009 at 12:12 AM, jay binks [via freeswitch-users]
<ml-node+4198003-749560510 at n2.nabble.com> wrote:
> what did you have to change, to get this working ?
> Jay
>
> On Mon, Dec 21, 2009 at 4:08 PM, Amarakeerthi S <[hidden email]> wrote:
>>
>> 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
>> > [hidden email]
>> > 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-can-call-without-money-in-database-tp4174333p4197038.html
>> Sent from the freeswitch-users mailing list archive at Nabble.com.
>>
>> _______________________________________________
>> FreeSWITCH-users mailing list
>> [hidden email]
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> http://www.freeswitch.org
>
>
>
> --
> Sincerely
>
> Jay
>
> _______________________________________________
> FreeSWITCH-users mailing list
> [hidden email]
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>
> ________________________________
> View message @
> http://n2.nabble.com/Mod-nibblebill-deduct-money-but-no-hangup-at-zero-and-can-call-without-money-in-database-tp4174333p4198003.html
> To unsubscribe from Re: Mod nibblebill deduct money but no hangup at zero
> and can call without money in database, click here.
>
--
View this message in context: http://n2.nabble.com/Mod-nibblebill-deduct-money-but-no-hangup-at-zero-and-can-call-without-money-in-database-tp4174333p4198998.html
Sent from the freeswitch-users mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20091221/b6828d92/attachment-0002.html
More information about the FreeSWITCH-users
mailing list