<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">Hello,<br>
<br>
While it may not be that straight-forward, you might want to take
a look at the dispatcher module.<br>
<br>
The dispatcher module does full NAPTR and SRV lookups for the
hosts in the dispatcher table. So you could add your needed
domains to the dispatcher table and then in your OpenSIPS script
call
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
ds_is_in_list in order to do IP-based authentication.<br>
<br>
Best Regards,<br>
<pre class="moz-signature" cols="72">Vlad Paiu
OpenSIPS Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a>
</pre>
On 07/24/2013 07:50 AM, Jeff Pyle wrote:<br>
</div>
<blockquote
cite="mid:CACYJG3LZyET0S3Dp1J_nzA9cmAdzWm51ZV9utW-eqRZMeoKBJg@mail.gmail.com"
type="cite">Hello,
<div><br>
</div>
<div>Is there a way to extract an IP address list from SRV and/or
NAPTR records from within the script?</div>
<div><br>
</div>
<div>I have an application where outbound traffic will be relayed
via SRV or NAPTR. Those name records ultimately resolve to
about 4 different IP addresses after you take into consideration
priorities, weights, etc. I'd like to learn and store those 4
IP addresses so I can do IP-based authentication on inbound
calls from the same network.</div>
<div><br>
</div>
<div>Another way to look at this is that I'm looking for a dynamic
address table-like list of IP addresses resolved from SRV or
NAPTR.</div>
<div><br>
</div>
<div><br>
</div>
<div>- Jeff</div>
<div><br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</body>
</html>