<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"><tt>Hello,<br>
        <br>
        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.<br>
        <br>
        See the "disable_dns_failover" param -
        <a class="moz-txt-link-freetext" href="http://www.opensips.org/Documentation/Script-CoreParameters-1-10#toc39">http://www.opensips.org/Documentation/Script-CoreParameters-1-10#toc39</a><br>
        <br>
        Regards,<br>
      </tt>
      <pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
      On 14.02.2014 17:37, Leon de Rooij wrote:<br>
    </div>
    <blockquote
cite="mid:CAESdRj=BVOUWhKoduT+d9rShsBHFn3-fcM1q8dneVJ5jFu6WAw@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hi all,
        <div><br>
        </div>
        <div>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.</div>
        <div>
          <br>
        </div>
        <div>I've been trying to fix it like this:</div>
        <div><br>
        </div>
        <div>* put fqdn in ruri</div>
        <div>
          <div>* t_on_failure("1")</div>
        </div>
        <div>* t_on_branch("1")</div>
        <div>* t_relay()</div>
        <div><br>
        </div>
        <div>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</div>
        <div><br>
        </div>
        <div>ERROR:tm:t_forward_nonack: failure to add branches</div>
        <div><br>
        </div>
        <div>Anybody know how this should work ?</div>
        <div><br>
        </div>
        <div>Thanks &amp; best regards,</div>
        <div><br>
        </div>
        <div>Leon de Rooij</div>
      </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>