<p>This is targeting usage in config, in addition to dns_query() from same ipops module and could be useful indeed. Maybe srv_query() can be enhanced to specify (e.g., via a parameter) what to return - the first entry (only one) or all entries. I find all entries useful, as there can be a loop in config to check all of them and see what is supported on the other side.</p>

<p>I think the sorting needs to be fixed according to rfc on priority.</p>

<p>Merging should not be done automatically here -- I can do it manually, because:</p>

<ul class="task-list">
<li>commit messages are not reflecting what is inside the patches</li>
<li>indentation style must match the rest of the code in the module</li>
</ul>

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