<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <tt>Hi,<br>
      <br>
      You can do TH with nathelper, BUT be sure to create the dialog +
      TH AFTER doing the fix_nated_contact().<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>
    <div class="moz-cite-prefix">On 01/20/2017 12:42 PM, Alberto
      Gonzales wrote:<br>
    </div>
    <blockquote
cite="mid:CAGD8o1gFn4N9DvwU5+KCYNeRhVkJyC39N9bt-XSHaOycV3FZzQ@mail.gmail.com"
      type="cite">
      <div dir="ltr">We used instruction in the book, which states at
        the end of the paragraph this : 
        <div><br>
        </div>
        <div>
          <div>Topology hiding limitations</div>
          <div>You cannot easily combine topology hiding with NAT
            traversal because both the</div>
          <div>processes mangle the Contact header. Topology hiding will
            not hide the address and</div>
          <div>other information contained in other headers such as the
            display in the From header.</div>
          <div>To change the From header, you can use the
            uac_replace_from() function.</div>
        </div>
        <div><br>
        </div>
        <div>I think our problem comes from the fact that we are using
          nathelper and also an rtpproxy in our script.</div>
        <div><br>
        </div>
        <div>can anyone provide help about activating topology hiding
          along with nathelper ?</div>
        <div><br>
        </div>
        <div>thanks in advance.</div>
        <div><br>
        </div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Fri, Jan 20, 2017 at 10:14 AM,
          Alberto Gonzales <span dir="ltr"><<a
              moz-do-not-send="true"
              href="mailto:albertosgonzale@gmail.com" target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:albertosgonzale@gmail.com">albertosgonzale@gmail.com</a></a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div dir="ltr">I forgot to mention that doing this resulted
              in opensips crashing after 20 minutes :) </div>
            <div class="HOEnZb">
              <div class="h5">
                <div class="gmail_extra"><br>
                  <div class="gmail_quote">On Fri, Jan 20, 2017 at 9:56
                    AM, Alberto Gonzales <span dir="ltr"><<a
                        moz-do-not-send="true"
                        href="mailto:albertosgonzale@gmail.com"
                        target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:albertosgonzale@gmail.com">albertosgonzale@gmail.com</a></a>></span>
                    wrote:<br>
                    <blockquote class="gmail_quote" style="margin:0 0 0
                      .8ex;border-left:1px #ccc solid;padding-left:1ex">
                      <div dir="ltr">
                        <div>Hello grupo,</div>
                        <div><br>
                        </div>
                        <div>We have configured topology hiding in
                          opensips 2.2 this way : </div>
                        <div><br>
                        </div>
                        <div>please confirm to us this is the only thing
                          we need to do or is there anything else that
                          needs to be added.</div>
                        <div><br>
                        </div>
                        <div>route {</div>
                        <div>....</div>
                        <div>....</div>
                        <div><span style="font-family:monospace"><span
                              style="color:rgb(0,0,0)">        if
                              (has_totag()) {
                            </span><br>
                            <font color="#000000">                </font><span
                              style="color:rgb(0,0,0);font-weight:bold">#
                              sequential request withing a dialog should</span>
                            <br>
                            <font color="#000000">                </font><span
                              style="color:rgb(0,0,0);font-weight:bold">#
                              take the path determined by record-routing</span>
                            <br>
                            <font color="#000000">                <span
                                style="font-weight:bold">#### remplazar
                                : if (loose_route()) {</span>  </font><br>
                                           <font color="#0000ff">if
                              (topology_hiding_match()) {
                            </font><br>
                            <br>
                            ...</span></div>
                        <div><span style="font-family:monospace">...</span></div>
                        <div>              <b>## esconder topologia
                            antes de pasar la llamada</b></div>
                        <div><span style="font-family:monospace">       <font
                              color="#0000ff">topology_hiding("UC")<span
                                style="font-weight:bold">;</span></font><span
                              style="color:rgb(0,0,0)">
                            </span><br>
                                   route(RELAY)<span
                              style="font-weight:bold;color:rgb(84,255,255)">;</span><span
                              style="color:rgb(0,0,0)">
                            </span><br>
                            }<br>
                            <br>
                          </span></div>
                        <div><br>
                        </div>
                        <div>also what could be a quick test to see if
                          this hiding is working or not.</div>
                        <div><br>
                        </div>
                        <div>thanks in advance.</div>
                        <span class="m_-1879352591039640362HOEnZb"><font
                            color="#888888">
                            <div><br>
                            </div>
                            <div>Alberto</div>
                            <div><br>
                            </div>
                          </font></span></div>
                    </blockquote>
                  </div>
                  <br>
                </div>
              </div>
            </div>
          </blockquote>
        </div>
        <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>