[OpenSIPS-Users] DNS-SRV query in opensips

Bogdan-Andrei Iancu bogdan at opensips.org
Tue Jun 21 09:41:04 CEST 2016


Hi Agalya,

OpenSIPS does full flavor DNS lookup (with NATPR and SRV), but this is 
internal, and not accessible from script. OpenSIPS implements auto 
DNS-based failover :
http://www.opensips.org/html/docs/modules/2.2.x/tm.html#id293694

My understanding is you want the DNS resolving to be done at script 
level and to have access to the results ?

Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 20.06.2016 20:35, Ramachandran, Agalya (Contractor) wrote:
>
> Hi team,
>
> We are using opensips for our project requirements.
>
> I have a scenario where we need DNS-SRV query and the result of this 
> should be placed as the desturi to send request out.(In case of 
> forking call)
>
> As far as I went through opensips documentation, there are some core 
> parameters for dns related config such as “dns_retr_time 
> <https://www.opensips.org/Documentation/Script-CoreParameters-1-11#toc44>” 
> ,”dns_retr_time 
> <https://www.opensips.org/Documentation/Script-CoreParameters-1-11#toc44>” ,”dns_servers_no 
> <https://www.opensips.org/Documentation/Script-CoreParameters-1-11#toc46>” 
> etc…
>
> According to my understanding these config variables can be declared 
> and used in the opensips.config file to control the settings of DNS query.
>
> Is there any available function where I can use and pass the DNS 
> server domain name, so that it fetches the IP address of the host ?
>
> Please let us know what is the best way to achieve this?
>
> Regards,
>
> Agalya
>
>
>
> _______________________________________________
> 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/20160621/3e779d13/attachment-0001.htm>


More information about the Users mailing list