<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p><br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 10.04.17 17:34, Diego Nadares wrote:<br>
    </div>
    <blockquote
cite="mid:CAP-r+epc2gkfkO7zy87q5aNoq6p7sZyLesfo6attOCXAnjnTXA@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hi Daniel,
        <div><br>
        </div>
        <div>Thanks for your response. Your suggestion helped me a lot.
          We don't use domains so instead a domain I set the ip address
          ($Ri). </div>
        <div><br>
        </div>
        <div>I added this to my cfg. I don't know if is the right place.
          Whay do you think?</div>
        <div><br>
        </div>
        <div>request_route {<br>
        </div>
        <div>
          <div><br>
          </div>
          <div>       .....</div>
        </div>
        <div>
          <div>       remove_hf("Route");</div>
          <div>        if (is_method("INVITE|SUBSCRIBE")) {</div>
          <div>                <b>$rd = $Ri; </b></div>
          <div>                record_route();</div>
          <div>        }</div>
        </div>
        <div>        ....</div>
      </div>
    </blockquote>
    If you want to preserve a domain without DNS in the R-URI, but still
    be able to send to a specific IP address, just update $du (known as
    destination uri or outbound proxy address):<br>
    <br>
    $du = <a class="moz-txt-link-rfc2396E" href="sip:x.y.z.w">"sip:x.y.z.w"</a>;<br>
    <br>
    If $du is set, upon doing t_relay(), forward() or a similar
    function, then it is used for routing.<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a>
Kamailio Advanced Training - May 22-24 (USA) - <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
Kamailio World Conference - May 8-10, 2017 - <a class="moz-txt-link-abbreviated" href="http://www.kamailioworld.com">www.kamailioworld.com</a></pre>
  </body>
</html>