<p>This is a minor issue, just encountered it recently. When ds_select_dst picks a destination, it is always an "active" one. But the candidates for failover are just "not inactive". This means that a destination currently in probing state is never picked directly, but can be picked for failover.</p>

<p>So if the first server chosen just became unreachable, we'd try another one that we already know to be unreachable, which is a bit weird. I'd suggest only using "active" destinations for the failovers, too.</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/issues/564">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AFOciRPg-TXGNroeddFJZ2pe2GXhFC07ks5oZCAQgaJpZM4FQCu0.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/issues/564"></link>
    <meta itemprop="name" content="View Issue"></meta>
  </div>
  <meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>