Thank you, this can be useful in some cases.
You know that DNS SRV and NAPTR support is in the core, right?
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.
---
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/119#issuecomment-88774954