<p>Thank you, this can be useful in some cases.</p>

<p>You know that DNS SRV and NAPTR support is in the core, right?</p>

<p>Sorting by weight is not in RFC 2782. You sort by priority and get a set of entries for each priority. Then you select by weight - but the result should be one entry, not a sorted list by weight. Weight is for load balancing, not sorting and failover. Priority is for failover.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/kamailio/kamailio/pull/119#issuecomment-88774954">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AF36ZafoFaKD-gtNWpTiHO9r9G_KdWAMks5n7N0lgaJpZM4D4wuO.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/kamailio/kamailio/pull/119#issuecomment-88774954"></link>
    <meta itemprop="name" content="View Pull Request"></meta>
  </div>
  <meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>