<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix"><tt>Hi, Satish!<br>
        <br>
        If you want to change the domain of the R-URI, you can use the
        $rd pseudovariable:<br>
        <br>
        $rd = "foo.com";<br>
        <br>
        Note that this means that the requests will go to foo.com (after
        the DNS lookup &amp; SRV stuff) and not to "abc.com". If you
        want the request to go to "abc.com", you'll have to change the
        destination uri, like this:<br>
        <br>
        $dd = $rd;<br>
        $rd = "foo.com";<br>
        <br>
        I hope this works for you.<br>
        <br>
        Best regards,<br>
      </tt>
      <pre class="moz-signature" cols="72">Răzvan Crainea
OpenSIPS Solutions
<a class="moz-txt-link-abbreviated" href="http://www.opensips-solutions.com">www.opensips-solutions.com</a></pre>
      On 09/06/2014 09:54 PM, Jeff Pyle wrote:<br>
    </div>
    <blockquote
cite="mid:CACYJG3LPizdyfDXVRDjDxc6uK2A1ebCz6RDL2gy70WnQ-Qkhpw@mail.gmail.com"
      type="cite">
      <div dir="ltr">Satish,
        <div><br>
        </div>
        <div>The rewritehost() function may do exactly what you want.</div>
        <div><br>
        </div>
        <div><a moz-do-not-send="true"
            href="http://www.opensips.org/Documentation/Script-CoreFunctions#toc35">http://www.opensips.org/Documentation/Script-CoreFunctions#toc35</a><br>
          <div class="gmail_extra"><br>
          </div>
          <div class="gmail_extra"><br clear="all">
            <div>
              <div dir="ltr">
                <div>- Jeff</div>
                <div>
                  <br>
                </div>
              </div>
            </div>
            <br>
            <br>
            <div class="gmail_quote">On Sat, Sep 6, 2014 at 9:27 AM,
              Satish Patel <span dir="ltr">&lt;<a
                  moz-do-not-send="true"
                  href="mailto:satish.txt@gmail.com" target="_blank">satish.txt@gmail.com</a>&gt;</span>
              wrote:<br>
              <blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">I
                have a question, I want to modify R-URI host portion for
                example<br>
                <br>
                Sip: <a moz-do-not-send="true"
                  href="mailto:1001@abc.com">1001@abc.com</a><br>
                <br>
                Change to<br>
                <br>
                Sip: <a moz-do-not-send="true"
                  href="mailto:1001@foo.com">1001@foo.com</a><br>
                <br>
                But after doing that it break my routing logic, so just
                want to know did it possible to chnage host portion of
                R-URI?<br>
                <br>
                Sent from my iPhone<br>
                _______________________________________________<br>
                Users mailing list<br>
                <a moz-do-not-send="true"
                  href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
                <a moz-do-not-send="true"
                  href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users"
                  target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
              </blockquote>
            </div>
            <br>
          </div>
        </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>