<p>Ok, I got it. I just try to avoid alloc's at any cost.</p>

<p>There are also some problems i found: please look at my commit: <a href="https://github.com/shripchenko/opensips/commit/26de7268598c54c1581befe21204d592b5ce2f09" class="commit-link">shripchenko@<tt>26de726</tt></a></p>

<p>And one more commit to review:<a href="https://github.com/shripchenko/opensips/commit/41812d4512a5ab2d331fc390e93e700a2fb88b8d" class="commit-link">shripchenko@<tt>41812d4</tt></a></p>

<p>In my work I face a situation when there was a big amount of calls with duration=0 (like rejected calls).<br>
And since LB normally takes first matched destination with minimum load first/one node was overwhelmed with calls and other nodes are almost free.<br>
(load was even for all nodes and equal to zero)<br>
it is, of course, a corner situation and not widely reproducible, but still possible.<br>
And I believe it adds a new level of 'fairness' to LB.<br>
It is cheap also.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br>Reply to this email directly or <a href="https://github.com/OpenSIPS/opensips/pull/345#issuecomment-71839691">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AFOciaAZ6gtaEeniwmxk1ULnFHzsYa2Bks5nmOTtgaJpZM4CpiN1.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
  <div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
    <link itemprop="url" href="https://github.com/OpenSIPS/opensips/pull/345#issuecomment-71839691"></link>
    <meta itemprop="name" content="View Pull Request"></meta>
  </div>
  <meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>