<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p><tt>Ok, it seems the UTC theory was right. Quoting from "man
gmtime_r":</tt></p>
<p><tt></tt><tt>"The gmtime() function converts the calendar time
timep to broken-down time representation, expressed in
Coordinated Universal Time (UTC)".</tt></p>
<p><tt>This is an ugly behavior IMO (to reset counters at 21:00),
and we should consider the timezone-adjusted local time, perhaps
using localtime_r(). Does this sound like a more natural
behavior to you?</tt></p>
<p><tt>Thanks,<br>
</tt></p>
<pre class="moz-signature" cols="72">Liviu Chircu
OpenSIPS Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
<div class="moz-cite-prefix">On 04.04.2018 16:54, Denis via Users
wrote:<br>
</div>
<blockquote type="cite" cite="mid:220621522850073@web29j.yandex.ru">
<div>Ok, i will check it.</div>
<div> </div>
<div>And what about "sequential call"? Should i make TT?</div>
<div> </div>
<div>P.S. I will ask you about one thing yet.</div>
<div>Can i detect current 'time' using Opensips script? And
compare it someway?</div>
<div> </div>
<div>Thank you.</div>
<div> </div>
<div>-- </div>
<div>С уважением, Денис.</div>
<div>Best regards, Denis</div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div>04.04.2018, 15:13, "Liviu Chircu" <a class="moz-txt-link-rfc2396E" href="mailto:liviu@opensips.org"><liviu@opensips.org></a>:</div>
<blockquote type="cite">
<p>Did OpenSIPS crash or restart between 0:25 - 3:20? I double
checked, and<br>
"total_calls" cannot be reset in another way.<br>
<br>
Another possibility is that the code sees GMT time. Since
Москва is on<br>
GMT+3, this may well explain the situation: first calls were
placed<br>
around 21:25 GMT, then the "total calls" limit was hit. At
0:00, the<br>
counters were reset, so another 29 calls successfully passed
through<br>
starting with 0:20.<br>
<br>
Let's keep an eye out for the "total calls" metric during
normal hours,<br>
for a couple of days, so we confirm the above hypothesis (or
not).<br>
<br>
Best regards,<br>
<br>
Liviu Chircu<br>
OpenSIPS Developer<br>
<a href="http://www.opensips-solutions.com/"
moz-do-not-send="true">http://www.opensips-solutions.com</a><br>
<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org"
moz-do-not-send="true">Users@lists.opensips.org</a><br>
<a
href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users"
moz-do-not-send="true">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a></p>
</blockquote>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</body>
</html>