[Freeswitch-users] nibblebill do not terminate calls properly
Tanguy
phenix at vfemail.net
Wed Apr 13 00:20:25 MSD 2016
Hello again
I tried to force heartbeat using dialplan and it's works: When the
balance reach 0, my calls are hanged up and i can't place a new call.
I don't understand why this did not work with *global_heartbeat* but
it's not really annoying if i can bypass this.
<extension name="international" >
<condition field="destination_number" expression="^00(\d{6,20})$" >
<action application="set" data="nibble_account=${accountcode}"/>
<action application="set" data="nibble_rate=0.1"/>
*<action application="nibblebill" data="heartbeat 30"/>*
<action application="nibblebill" data="flush"/>
<action application="bridge" data="sofia/gateway/gw_idt/$1" />
</condition>
</extension>
On 11/04/2016 23:55, Sergey Safarov wrote:
>
> Probable. Yes.
> On my servers, all work as documented in confluence.
>
>
> On Tue, Apr 12, 2016, 00:24 Tanguy <phenix at vfemail.net
> <mailto:phenix at vfemail.net>> wrote:
>
> Hello Sergey
>
> Thanks for your advice, now i can't place a new call with a
> negative balance
>
>
> [DEBUG] mod_nibblebill.c:488 Attempting to bill at $0.1 per minute
> to account company.voip.domain.com <http://company.voip.domain.com>
> [DEBUG] mod_nibblebill.c:500 Not billing account
> company.voip.domain.com <http://company.voip.domain.com> - call is
> not in answered state
>
> [DEBUG] mod_nibblebill.c:420 Doing lookup query
> [DEBUG] mod_nibblebill.c:428 Retrieved current balance for account
> account company.voip.domain.com <http://company.voip.domain.com>
> (balance = -0.028433)
> [DEBUG] mod_nibblebill.c:504 Comparing -0.028433 to hangup balance
> of 0.000000
>
> But currents calls are not hanged up when my balance reach 0 and
> the database is never updated during the call ( but only after
> hangup ), i probably have a issue with the "global_heartbeat"
> parameter.
>
>
>
>
>
>
>
> On 11/04/2016 21:59, Sergey Safarov wrote:
>>
>> I think problem in order of flush command. To take effect nibble
>> rate must be set before execution flush.
>>
>>
>> On Mon, Apr 11, 2016, 22:50 tanguy <phenix at vfemail.net
>> <mailto:phenix at vfemail.net>> wrote:
>>
>> > Sergey
>> Thank you for your piece of dialplan but i don't think it's the
>> solution. You offer a different solution to set the nibble_rate
>> variable, but in my sample case this variable is properly set
>> because
>> the call is billed.
>>
>> > Luis
>> A bug, maybe. I don't remember my freeswitch version ( i
>> can't connect
>> to my servers yet ) but i think it's 1.4 series.
>>
>> I can try the last 1.6 version, i will also try a standard
>> freeswitch
>> sample configuration ( without config files provided by
>> fusionpbx )
>>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org <mailto:consulting at freeswitch.org>
> http://www.freeswitchsolutions.com
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://confluence.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> <mailto: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
>
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://confluence.freeswitch.org
> http://www.cluecon.com
>
> 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/20160412/dc029e10/attachment-0001.html
Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users
mailing list