<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Hello,<br>
      <br>
      You must call topology_hiding() before t_relay() - please try
      that.<br>
      Also, make sure to change your sequential request handling from<br>
      <br>
      &nbsp;&nbsp;&nbsp;&nbsp; if (loose_route())<br>
      <br>
      to<br>
      <br>
      &nbsp;&nbsp;&nbsp;&nbsp; if (loose_route() || match_dialog())<br>
      <br>
      <br>
      Best Regards,<br>
      <pre class="moz-signature" cols="72">Vlad Paiu
OpenSIPS Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a> </pre>
      On 26.08.2014 06:48, Satish Patel wrote:<br>
    </div>
    <blockquote
cite="mid:CAPgF-fo-6OKKxamqkkf2iKWj5w2MRDqja5JvYxSPBLce7H93BA@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>
          <div>I have put topology_hiding() function at following place
            in script but its not hiding VIA header following is my
            senerio<br>
            <br>
          </div>
          [UA]--------&gt;[Opensips]-----------[Asterisk/SIP gateway]<br>
          <br>
        </div>
        I want to hind my UA IP address so Asterisk doesn't see them,
        currently my asterisk can see what IP address UA coming from,
        where should i put them generally <br>
        <br>
        <br>
        if (is_method("INVITE")) {<br>
        ...<br>
        ...<br>
        if&nbsp; ( uri=~<a class="moz-txt-link-rfc2396E" href="mailto:^sip:[0-9]*@.*">"^sip:[0-9]*@.*"</a>) {<br>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; uac_replace_from("<a moz-do-not-send="true"
          href="mailto:sip%3A4545@65.111.170.127">sip:4545@65.111.170.127</a>");<br>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; t_on_failure("3");<br>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; resetflag(7);<br>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; t_relay( "udp:<a moz-do-not-send="true"
          href="http://65.111.170.127:5065">65.111.170.127:5065</a>" );<br>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; topology_hiding();<br>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; exit;<br>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; };<br>
        <br>
      </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>