<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>I repeat, that it's right example!!<br>
</p>
<p>7 7820 <br>
</p>
<br>
More strange examples:<br>
<br>
125 124740<br>
38 38020<br>
119 119500<br>
65 64320<br>
<br>
etc...<br>
<br>
<div class="moz-cite-prefix">14.04.2019 01:43, Giovanni Maruzzelli
пишет:<br>
</div>
<blockquote type="cite"
cite="mid:CALXCt0pJows3y5J0MoSF-XKPubZBbYZbMZN0G7XuzUmN3-wJtQ@mail.gmail.com">
<div dir="ltr">
<div>Ciao Ken!</div>
<div><br>
</div>
<div>yep, I'm totally with you in ceiling to the next unit if
you do your billing.</div>
<div><br>
</div>
<div>But the OP seems to have inconsistent roundings of the
vars expressed in millisec vs sec</div>
<div>I tend to think probably the OP was not actually having
those rounding errs, maybe he just miscopied things...</div>
<div><br>
</div>
<div><br>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Sun, Apr 14, 2019 at
12:04 AM Ken Rice <<a href="mailto:krice@freeswitch.org"
target="_blank" moz-do-not-send="true">krice@freeswitch.org</a>>
wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left:1px solid
rgb(204,204,204);padding-left:1ex">
<div lang="EN-US">
<div
class="m_3128950068627653982gmail-m_-5131198945161066450WordSection1">
<p class="MsoNormal">If you really want your code to act
like the big boys you always ceiling to the second or
bill increment… using whole numbers for example,
60/60 (1 minute increments like that cell phone
companies) 0-60 is the first minute, 61 seconds,
that’s 2 minutes…</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">When you are dealing ms level
counters, 0-60.000 is first minute, 60.001-120.000 is
the second minute. Doesn’t matter that you are only
.001 over the 60 seconds you are into the next minute
already…</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"><b>From:</b> FreeSWITCH-users <<a
href="mailto:freeswitch-users-bounces@lists.freeswitch.org"
target="_blank" moz-do-not-send="true">freeswitch-users-bounces@lists.freeswitch.org</a>>
<b>On Behalf Of </b>Giovanni Maruzzelli<br>
<b>Sent:</b> Saturday, April 13, 2019 4:41 PM<br>
<b>To:</b> FreeSWITCH Users Help <<a
href="mailto:freeswitch-users@lists.freeswitch.org"
target="_blank" moz-do-not-send="true">freeswitch-users@lists.freeswitch.org</a>><br>
<b>Subject:</b> Re: [Freeswitch-users] billmsec and
billsec round</p>
<p class="MsoNormal"> </p>
<div>
<div>
<p class="MsoNormal">Morfair (OP),</p>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal">can you please double check you
actually got crazy roundings like 7 7820?</p>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal">-giovanni</p>
</div>
</div>
<p class="MsoNormal"> </p>
<div>
<div>
<p class="MsoNormal">On Sat, Apr 13, 2019 at 10:29
PM Михаил Калинин <<a
href="mailto:morfair@gmail.com" target="_blank"
moz-do-not-send="true">morfair@gmail.com</a>>
wrote:</p>
</div>
<blockquote style="border-color:currentcolor
currentcolor currentcolor
rgb(204,204,204);border-style:none none none
solid;border-width:medium medium medium
1pt;padding:0in 0in 0in
6pt;margin-left:4.8pt;margin-right:0in">
<div>
<p class="MsoNormal">yes. it's crazy</p>
</div>
<p class="MsoNormal"> </p>
<div>
<div>
<p class="MsoNormal">сб, 13 апр. 2019 г. в
06:23, Giovanni Maruzzelli <<a
href="mailto:gmaruzz@gmail.com"
target="_blank" moz-do-not-send="true">gmaruzz@gmail.com</a>>:</p>
</div>
<blockquote style="border-color:currentcolor
currentcolor currentcolor
rgb(204,204,204);border-style:none none none
solid;border-width:medium medium medium
1pt;padding:0in 0in 0in
6pt;margin-left:4.8pt;margin-right:0in">
<div>
<div>
<p class="MsoNormal"><span
style="font-size:9.5pt;font-family:"Arial",sans-serif">7
7820 ????</span></p>
<div>
<p class="MsoNormal"> </p>
</div>
<p class="MsoNormal"
style="margin-bottom:12pt"> </p>
<div>
<div>
<p class="MsoNormal">On Sat, Apr 13,
2019, 04:06 Faisal Hanif <<a
href="mailto:imfanee@gmail.com"
target="_blank"
moz-do-not-send="true">imfanee@gmail.com</a>>
wrote:</p>
</div>
<blockquote
style="border-color:currentcolor
currentcolor currentcolor
rgb(204,204,204);border-style:none none
none solid;border-width:medium medium
medium 1pt;padding:0in 0in 0in
6pt;margin-left:4.8pt;margin-right:0in">
<div>
<p class="MsoNormal">if <span
style="font-size:10.5pt;font-family:"Verdana",sans-serif;color:rgb(49,49,49);background:white
none repeat scroll 0% 0%">remainder
is 4 or plus.</span></p>
</div>
<p class="MsoNormal"> </p>
<div>
<div>
<p class="MsoNormal">On Sat, Apr 13,
2019, 6:59 AM Giovanni Maruzzelli
<<a
href="mailto:gmaruzz@gmail.com"
target="_blank"
moz-do-not-send="true">gmaruzz@gmail.com</a>>
wrote:</p>
</div>
<blockquote
style="border-color:currentcolor
currentcolor currentcolor
rgb(204,204,204);border-style:none
none none solid;border-width:medium
medium medium 1pt;padding:0in 0in
0in
6pt;margin-left:4.8pt;margin-right:0in">
<div>
<div>
<p class="MsoNormal"
style="margin-bottom:12pt"> </p>
<div>
<div>
<p class="MsoNormal">On Sat,
Apr 13, 2019, 03:26 Faisal
Hanif <<a
href="mailto:imfanee@gmail.com"
target="_blank"
moz-do-not-send="true">imfanee@gmail.com</a>>
wrote:</p>
</div>
<blockquote
style="border-color:currentcolor
currentcolor currentcolor
rgb(204,204,204);border-style:none
none none
solid;border-width:medium
medium medium
1pt;padding:0in 0in 0in
6pt;margin-left:4.8pt;margin-right:0in">
<div>
<div>
<p class="MsoNormal">It
simply dividing
billmsec by 1000 and
then rounding it by
general math rule so
ideally you can use
billsec for billing
but if you need more
precision you can use
billmsec and decide by
1000 by your code.</p>
</div>
</div>
</blockquote>
</div>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal">Maybe you
have not paid attention to the
example given...</p>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<div>
<blockquote
style="border-color:currentcolor
currentcolor currentcolor
rgb(204,204,204);border-style:none
none none
solid;border-width:medium
medium medium
1pt;padding:0in 0in 0in
6pt;margin-left:4.8pt;margin-right:0in">
<div>
<div>
<p class="MsoNormal"> </p>
<div>
<div>
<p class="MsoNormal">On
Sat, Apr 13, 2019,
3:37 AM <a
href="mailto:morfair@gmail.com"
target="_blank"
moz-do-not-send="true">morfair@gmail.com</a> <<a
href="mailto:morfair@gmail.com"
target="_blank"
moz-do-not-send="true">morfair@gmail.com</a>> wrote:</p>
</div>
<blockquote
style="border-color:currentcolor
currentcolor
currentcolor
rgb(204,204,204);border-style:none
none none
solid;border-width:medium
medium medium
1pt;padding:0in 0in
0in
6pt;margin-left:4.8pt;margin-right:0in">
<p class="MsoNormal">Hello
all!<br>
<br>
Help please with
billsec variable,
how to it
calculate? In my
accounting <br>
store I have a
sets:<br>
<br>
billsec; billmsec<br>
<br>
7 7820<br>
<br>
7 7360<br>
<br>
33 33360<br>
<br>
38 38020<br>
<br>
59 58900<br>
<br>
26 25840<br>
<br>
87 86400<br>
<br>
<br>
How to calculate
billsec? What
algorithm is used
for round
billmsec?<br>
<br>
P.S.: Sorry for my
English.<br>
<br>
<br>
_________________________________________________________________________<br>
Professional
FreeSWITCH
Services<br>
<a
href="mailto:sales@freeswitch.com"
target="_blank"
moz-do-not-send="true">sales@freeswitch.com</a><br>
<a
href="https://freeswitch.com"
target="_blank"
moz-do-not-send="true">https://freeswitch.com</a><br>
<br>
Official
FreeSWITCH Sites<br>
<a
href="https://freeswitch.com/oss"
target="_blank"
moz-do-not-send="true">https://freeswitch.com/oss</a><br>
<a
href="https://freeswitch.org/confluence"
target="_blank"
moz-do-not-send="true">https://freeswitch.org/confluence</a><br>
<a
href="https://cluecon.com"
target="_blank"
moz-do-not-send="true">https://cluecon.com</a><br>
<br>
FreeSWITCH-users
mailing list<br>
<a
href="mailto:FreeSWITCH-users@lists.freeswitch.org"
target="_blank"
moz-do-not-send="true">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a
href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"
target="_blank"
moz-do-not-send="true">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a
href="http://lists.freeswitch.org/mailman/options/freeswitch-users"
target="_blank"
moz-do-not-send="true">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a
href="https://freeswitch.com"
target="_blank"
moz-do-not-send="true">https://freeswitch.com</a></p>
</blockquote>
</div>
</div>
</div>
<p class="MsoNormal">_________________________________________________________________________<br>
Professional FreeSWITCH
Services<br>
<a
href="mailto:sales@freeswitch.com"
target="_blank"
moz-do-not-send="true">sales@freeswitch.com</a><br>
<a
href="https://freeswitch.com"
target="_blank"
moz-do-not-send="true">https://freeswitch.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a
href="https://freeswitch.com/oss"
target="_blank"
moz-do-not-send="true">https://freeswitch.com/oss</a><br>
<a
href="https://freeswitch.org/confluence"
target="_blank"
moz-do-not-send="true">https://freeswitch.org/confluence</a><br>
<a
href="https://cluecon.com"
target="_blank"
moz-do-not-send="true">https://cluecon.com</a><br>
<br>
FreeSWITCH-users mailing
list<br>
<a
href="mailto:FreeSWITCH-users@lists.freeswitch.org"
target="_blank"
moz-do-not-send="true">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a
href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"
target="_blank"
moz-do-not-send="true">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a
href="http://lists.freeswitch.org/mailman/options/freeswitch-users"
target="_blank"
moz-do-not-send="true">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a
href="https://freeswitch.com"
target="_blank"
moz-do-not-send="true">https://freeswitch.com</a></p>
</blockquote>
</div>
</div>
</div>
<p class="MsoNormal">_________________________________________________________________________<br>
Professional FreeSWITCH Services<br>
<a
href="mailto:sales@freeswitch.com"
target="_blank"
moz-do-not-send="true">sales@freeswitch.com</a><br>
<a href="https://freeswitch.com"
target="_blank"
moz-do-not-send="true">https://freeswitch.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a
href="https://freeswitch.com/oss"
target="_blank"
moz-do-not-send="true">https://freeswitch.com/oss</a><br>
<a
href="https://freeswitch.org/confluence"
target="_blank"
moz-do-not-send="true">https://freeswitch.org/confluence</a><br>
<a href="https://cluecon.com"
target="_blank"
moz-do-not-send="true">https://cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a
href="mailto:FreeSWITCH-users@lists.freeswitch.org"
target="_blank"
moz-do-not-send="true">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a
href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"
target="_blank"
moz-do-not-send="true">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a
href="http://lists.freeswitch.org/mailman/options/freeswitch-users"
target="_blank"
moz-do-not-send="true">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="https://freeswitch.com"
target="_blank"
moz-do-not-send="true">https://freeswitch.com</a></p>
</blockquote>
</div>
<p class="MsoNormal">_________________________________________________________________________<br>
Professional FreeSWITCH Services<br>
<a href="mailto:sales@freeswitch.com"
target="_blank"
moz-do-not-send="true">sales@freeswitch.com</a><br>
<a href="https://freeswitch.com"
target="_blank"
moz-do-not-send="true">https://freeswitch.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="https://freeswitch.com/oss"
target="_blank"
moz-do-not-send="true">https://freeswitch.com/oss</a><br>
<a
href="https://freeswitch.org/confluence"
target="_blank"
moz-do-not-send="true">https://freeswitch.org/confluence</a><br>
<a href="https://cluecon.com"
target="_blank"
moz-do-not-send="true">https://cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a
href="mailto:FreeSWITCH-users@lists.freeswitch.org"
target="_blank"
moz-do-not-send="true">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a
href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"
target="_blank"
moz-do-not-send="true">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a
href="http://lists.freeswitch.org/mailman/options/freeswitch-users"
target="_blank"
moz-do-not-send="true">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="https://freeswitch.com"
target="_blank"
moz-do-not-send="true">https://freeswitch.com</a></p>
</blockquote>
</div>
</div>
</div>
<p class="MsoNormal">_________________________________________________________________________<br>
Professional FreeSWITCH Services<br>
<a href="mailto:sales@freeswitch.com"
target="_blank" moz-do-not-send="true">sales@freeswitch.com</a><br>
<a href="https://freeswitch.com"
target="_blank" moz-do-not-send="true">https://freeswitch.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="https://freeswitch.com/oss"
target="_blank" moz-do-not-send="true">https://freeswitch.com/oss</a><br>
<a href="https://freeswitch.org/confluence"
target="_blank" moz-do-not-send="true">https://freeswitch.org/confluence</a><br>
<a href="https://cluecon.com" target="_blank"
moz-do-not-send="true">https://cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a
href="mailto:FreeSWITCH-users@lists.freeswitch.org"
target="_blank" moz-do-not-send="true">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a
href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"
target="_blank" moz-do-not-send="true">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a
href="http://lists.freeswitch.org/mailman/options/freeswitch-users"
target="_blank" moz-do-not-send="true">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="https://freeswitch.com"
target="_blank" moz-do-not-send="true">https://freeswitch.com</a></p>
</blockquote>
</div>
<p class="MsoNormal">_________________________________________________________________________<br>
Professional FreeSWITCH Services<br>
<a href="mailto:sales@freeswitch.com"
target="_blank" moz-do-not-send="true">sales@freeswitch.com</a><br>
<a href="https://freeswitch.com" target="_blank"
moz-do-not-send="true">https://freeswitch.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="https://freeswitch.com/oss"
target="_blank" moz-do-not-send="true">https://freeswitch.com/oss</a><br>
<a href="https://freeswitch.org/confluence"
target="_blank" moz-do-not-send="true">https://freeswitch.org/confluence</a><br>
<a href="https://cluecon.com" target="_blank"
moz-do-not-send="true">https://cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a
href="mailto:FreeSWITCH-users@lists.freeswitch.org"
target="_blank" moz-do-not-send="true">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a
href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"
target="_blank" moz-do-not-send="true">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a
href="http://lists.freeswitch.org/mailman/options/freeswitch-users"
target="_blank" moz-do-not-send="true">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="https://freeswitch.com" target="_blank"
moz-do-not-send="true">https://freeswitch.com</a></p>
</blockquote>
</div>
<p class="MsoNormal"><br clear="all">
<br>
-- </p>
<div>
<p class="MsoNormal" style="margin-bottom:12pt">Sincerely,<br>
<br>
Giovanni Maruzzelli<br>
OpenTelecom.IT<br>
cell: +39 347 266 56 18</p>
</div>
</div>
</div>
_________________________________________________________________________<br>
Professional FreeSWITCH Services<br>
<a href="mailto:sales@freeswitch.com" target="_blank"
moz-do-not-send="true">sales@freeswitch.com</a><br>
<a href="https://freeswitch.com" rel="noreferrer"
target="_blank" moz-do-not-send="true">https://freeswitch.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="https://freeswitch.com/oss" rel="noreferrer"
target="_blank" moz-do-not-send="true">https://freeswitch.com/oss</a><br>
<a href="https://freeswitch.org/confluence" rel="noreferrer"
target="_blank" moz-do-not-send="true">https://freeswitch.org/confluence</a><br>
<a href="https://cluecon.com" rel="noreferrer"
target="_blank" moz-do-not-send="true">https://cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org"
target="_blank" moz-do-not-send="true">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a
href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"
rel="noreferrer" target="_blank" moz-do-not-send="true">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a
href="http://lists.freeswitch.org/mailman/options/freeswitch-users"
rel="noreferrer" target="_blank" moz-do-not-send="true">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="https://freeswitch.com" rel="noreferrer"
target="_blank" moz-do-not-send="true">https://freeswitch.com</a></blockquote>
</div>
<br clear="all">
<br>
-- <br>
<div dir="ltr" class="m_3128950068627653982gmail_signature">Sincerely,<br>
<br>
Giovanni Maruzzelli<br>
OpenTelecom.IT<br>
cell: +39 347 266 56 18<br>
<br>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_________________________________________________________________________
Professional FreeSWITCH Services
<a class="moz-txt-link-abbreviated" href="mailto:sales@freeswitch.com">sales@freeswitch.com</a>
<a class="moz-txt-link-freetext" href="https://freeswitch.com">https://freeswitch.com</a>
Official FreeSWITCH Sites
<a class="moz-txt-link-freetext" href="https://freeswitch.com/oss">https://freeswitch.com/oss</a>
<a class="moz-txt-link-freetext" href="https://freeswitch.org/confluence">https://freeswitch.org/confluence</a>
<a class="moz-txt-link-freetext" href="https://cluecon.com">https://cluecon.com</a>
FreeSWITCH-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a class="moz-txt-link-freetext" href="https://freeswitch.com">https://freeswitch.com</a></pre>
</blockquote>
<br>
</body>
</html>