<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body>
<div>
<div>
<div style="direction: ltr;">Upwards seems best.</div>
</div>
<div><br>
</div>
<div class="ms-outlook-ios-signature"><a href="https://aka.ms/o0ukef">Outlook voor iOS</a> downloaden</div>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>Van:</b> Users <users-bounces@lists.opensips.org> namens Liviu Chircu <liviu@opensips.org><br>
<b>Verzonden:</b> Tuesday, June 9, 2020 8:58:24 PM<br>
<b>Aan:</b> OpenSIPS users mailling list <users@lists.opensips.org><br>
<b>Onderwerp:</b> Re: [OpenSIPS-Users] Maybe it's a bug</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">On 09.06.2020 15:43, Saint Michael wrote:<br>
> I talked to Vlad, who I believe wrote the code, and he does not think <br>
> it is a bug and I should use the ms and not the seconds. But thousands <br>
> of businessmen will not spot this and thus their billing will never <br>
> match the carrier, and they will lose money. If anybody thinks for a <br>
> second that a call with a 200 OK will be free, is dreaming. Not in <br>
> America.<br>
<br>
Hi, SM!<br>
<br>
Opinion #1: I doubt that anyone who is serious about their billing & <br>
revenue (e.g. your nitpicky carrier) would leave to randomness the <br>
answer to the most basic question of: "does our platform correctly bill <br>
each call?".  No disrespect here, just maybe highlighting the fact that <br>
your platform could benefit from a bit more testing.<br>
<br>
Opinion #2: we could definitely change the default of the <br>
second-accurate precision to be _greedy_ instead of _generous_. I bet <br>
most people (myself included) would be more happy with a ceil() [1] <br>
behavior instead of a trunc() [2] one.  That is: round _upwards_, not <br>
_downwards_.  More opinions would be useful here!<br>
<br>
Best regards,<br>
<br>
[1]: man ceil<br>
[2]: man trunc<br>
<br>
-- <br>
Liviu Chircu<br>
<a href="http://www.twitter.com/liviuchircu">www.twitter.com/liviuchircu</a> | <a href="http://www.opensips-solutions.com">
www.opensips-solutions.com</a><br>
<br>
<br>
_______________________________________________<br>
Users mailing list<br>
Users@lists.opensips.org<br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</div>
</span></font></div>
</body>
</html>