<p>If there is a preference for UDP, and an SRV lookup is done with no result, I would still want to "fall through" and attempt a TCP SRV lookup.  It seems like this SHOULD be the way things work.</p>

<p>If there is a parameter to place preference on one protocol vs. the other I would still want the fall through behaviour should the preferred protocol not get any SRV result.  </p>

<p>If this fall through behaviour would be undesirable for speed purposes to some, then perhaps two parameters:<br><br>
proto_preference, [UDP|TCP|TLS]<br>
proto_fallthrough, [1|0]</p>

<p>In this case all the existing mechanisms to previously determine the protocol would still be in place, and these parameters would only take effect in the case where an SRV lookup with an "assumed" protocol happens.</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/420#issuecomment-77374361">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AFOciZrxRQlTi1FRfM8kME9Buf6JdGzGks5nyGJQgaJpZM4Dn7ta.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/420#issuecomment-77374361"></link>
    <meta itemprop="name" content="View Issue"></meta>
  </div>
  <meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>