<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 03/13/2014 10:13 PM, Sean Bright
wrote:<br>
</div>
<blockquote cite="mid:53221F75.6030600@gmail.com" type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
In order to make this "channel agnostic" you have three (equally
bad) options:<br>
<ol>
<li>Replace Asterisk's internal DNS facilities with PJLIB's,
creating a mandatory dependency on PJSIP.</li>
<li>Roll a shiny new DNS API into Asterisk that supports all
address types (multiple results, weighting, etc.). Bear in
mind that PJSIP would not use this new API at all, you would
still need to create a PJLIB DNS resolver and feed it the
nameservers to use.<br>
</li>
</ol>
</blockquote>
<br>
If you do decide you want a cross-platform, asynchronous DNS API
which is not tied to pjlib, you might consider c-ares (of libcurl /
wireshark / node.js fame):<br>
<br>
<a class="moz-txt-link-freetext" href="http://c-ares.haxx.se/">http://c-ares.haxx.se/</a><br>
<br>
Just my two cents.<br>
<br>
Jeremy<br>
</body>
</html>