<div><div dir="ltr"><div>That'll work. Thanks, Vlad.</div><div><br></div><div><br></div><div>- Jeff</div><div><br></div></div></div>
<br><br><div class="gmail_quote">On Tue, Aug 6, 2013 at 3:42 PM, Vlad Paiu <span dir="ltr"><<a href="mailto:vladpaiu@opensips.org" target="_blank">vladpaiu@opensips.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<div>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
ds_is_in_list in order to do IP-based authentication.<br>
<br>
Best Regards,<br>
<pre cols="72">Vlad Paiu
OpenSIPS Developer
<a href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a>
</pre><div><div class="h5">
On 07/24/2013 07:50 AM, Jeff Pyle wrote:<br>
</div></div></div>
<blockquote type="cite"><div><div class="h5">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></fieldset>
<br>
</div></div><div class="im"><pre>_______________________________________________
Users mailing list
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</div></blockquote>
<br>
</div>
<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br>