<p>...if multiple destinations selected.</p>

<p>This could help to offload an excessive load from first destination and distribute load in situations when calls duration is near to zero (like failed calls)<br>
and counts in resources are almost always zero and does not reflect an actual calls flow.</p>

<p>Already discussed in PR: <a href="https://github.com/OpenSIPS/opensips/pull/345" class="issue-link" title="load_balancer module enhancements">OpenSIPS/opensips#345</a></p>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>&nbsp;&nbsp;<a href='https://github.com/OpenSIPS/opensips/pull/610'>https://github.com/OpenSIPS/opensips/pull/610</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>A new flag for LB module lb_start() function to pick a rand()&#39;om destinations with equal load,</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/OpenSIPS/opensips/pull/610/files#diff-0">modules/load_balancer/lb_data.c</a>
    (78)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/OpenSIPS/opensips/pull/610/files#diff-1">modules/load_balancer/lb_data.h</a>
    (1)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/OpenSIPS/opensips/pull/610/files#diff-2">modules/load_balancer/load_balancer.c</a>
    (4)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/OpenSIPS/opensips/pull/610.patch'>https://github.com/OpenSIPS/opensips/pull/610.patch</a></li>
  <li><a href='https://github.com/OpenSIPS/opensips/pull/610.diff'>https://github.com/OpenSIPS/opensips/pull/610.diff</a></li>
</ul>

<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/610">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AFOcie3KJrWuCbDzjI2N21xSwNOp7TQIks5oquZwgaJpZM4Fw49o.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/610"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>