Hello,

OpenSIPS automatically does DNS-based failover (using the NATPR, SRV and A records for the domain) - there is not need to do it manually from script. Using the same principal (serial forking), transparent for you, OpenSIPS TM module will do it for you.

See the "disable_dns_failover" param - http://www.opensips.org/Documentation/Script-CoreParameters-1-10#toc39

Regards,

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

On 14.02.2014 17:37, Leon de Rooij wrote:
Hi all,

I'd like to route a call to a domain, perform NAPTR,SRV,A lookups and in each serial failure_route, use the resolved destination IP to set a custom pre-loaded route.

I've been trying to fix it like this:

* put fqdn in ruri
* t_on_failure("1")
* t_on_branch("1")
* t_relay()

Should I then be able to get the resolved destination IP address in the branch_route[1] ? How should I then get the second, third, etc ip adress ? I tried to put another t_on_branch("1") in the failure_route but that results in an

ERROR:tm:t_forward_nonack: failure to add branches

Anybody know how this should work ?

Thanks & best regards,

Leon de Rooij


_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to