<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Hello Sergey<br>
<br>
Thanks for your advice, now i can't place a new call with a
negative balance<br>
<br>
<tt>[DEBUG] mod_nibblebill.c:488 Attempting to bill at $0.1 per
minute to account company.voip.domain.com</tt><tt><br>
</tt><tt>[DEBUG] mod_nibblebill.c:500 Not billing account
company.voip.domain.com - call is not in answered state</tt><tt><br>
</tt><tt>[DEBUG] mod_nibblebill.c:420 Doing lookup query</tt><tt><br>
</tt><tt>[DEBUG] mod_nibblebill.c:428 Retrieved current balance
for account account company.voip.domain.com (balance =
-0.028433)</tt><tt><br>
</tt><tt>[DEBUG] mod_nibblebill.c:504 Comparing -0.028433 to
hangup balance of 0.000000</tt><br>
<br>
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.<br>
<br>
<br>
<br>
<br>
<br>
<br>
On 11/04/2016 21:59, Sergey Safarov wrote:<br>
</div>
<blockquote
cite="mid:CAHtxdDeTKfpCrN1snWDTnuCTvvezfrzaKPWR6pf2V8M-NMRdwA@mail.gmail.com"
type="cite">
<p dir="ltr">I think problem in order of flush command. To take
effect nibble rate must be set before execution flush.</p>
<br>
<div class="gmail_quote">
<div dir="ltr">On Mon, Apr 11, 2016, 22:50 tanguy <<a
moz-do-not-send="true" href="mailto:phenix@vfemail.net">phenix@vfemail.net</a>>
wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">> Sergey<br>
Thank you for your piece of dialplan but i don't think it's
the<br>
solution. You offer a different solution to set the
nibble_rate<br>
variable, but in my sample case this variable is properly set
because<br>
the call is billed.<br>
<br>
> Luis<br>
A bug, maybe. I don't remember my freeswitch version ( i can't
connect<br>
to my servers yet ) but i think it's 1.4 series.<br>
<br>
I can try the last 1.6 version, i will also try a standard
freeswitch<br>
sample configuration ( without config files provided by
fusionpbx )<br>
<br>
</blockquote>
</div>
</blockquote>
<br>
</body>
</html>