[OpenSIPS-Users] IP address list from SRV/NAPTR records

Jeff Pyle jpyle at fidelityvoice.com
Tue Aug 6 21:44:34 CEST 2013


That'll work.  Thanks, Vlad.


- Jeff



On Tue, Aug 6, 2013 at 3:42 PM, Vlad Paiu <vladpaiu at opensips.org> wrote:

>  Hello,
>
> While it may not be that straight-forward, you might want to take a look
> at the dispatcher module.
>
> 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.
>
> Best Regards,
>
> Vlad Paiu
> OpenSIPS Developerhttp://www.opensips-solutions.com
>
> On 07/24/2013 07:50 AM, Jeff Pyle wrote:
>
> Hello,
>
>  Is there a way to extract an IP address list from SRV and/or NAPTR
> records from within the script?
>
>  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.
>
>  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.
>
>
>  - Jeff
>
>
>
> _______________________________________________
> Users mailing listUsers at lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20130806/8cf2ec56/attachment.htm>


More information about the Users mailing list