<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <tt>I see no indication of creating a dialog in your script sample
      :(...Are you sure about this ?<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/24/2017 02:20 PM, Alberto
      Gonzales wrote:<br>
    </div>
    <blockquote
cite="mid:CAGD8o1iGqTRQvxM3km7A9aRbv72myBzsLZ_SToQq+bd3Ap224Q@mail.gmail.com"
      type="cite">
      <div dir="ltr"><font color="#000000">I am using dialog in my
          script, </font>
        <div><font color="#000000">here is the part of main function </font></div>
        <div><font color="#000000"><br>
          </font></div>
        <div><span style="font-family:monospace"><font color="#000000"> 
                    <span style="font-weight:bold"># apply
                transformations from dialplan table</span>
              <br>
                     dp_translate("0","$rU/$rU")<span
                style="font-weight:bold">;</span>
              <br>
              <br>
                     <span style="font-weight:bold"># route calls based
                on prefix</span>
              <br>
                     if (
              !do_routing("1","W",,"$var(rule_attrs)","$var(gw_attrs)")
              ) {
              <br>
                             send_reply("404","No Route found")<span
                style="font-weight:bold">;</span>
              <br>
                             exit<span style="font-weight:bold">;</span>
              <br>
                     }
              <br>
              <br>
                     $acc_extra(gwid)=<span style="font-weight:bold">$avp(gw_id)</span><span
                style="font-weight:bold">;</span>
              <br>
              <br>
                     t_on_failure("GW_FAILOVER")<span
                style="font-weight:bold">;</span>
              <br>
              <br>
                     do_accounting("db|log","cdr|missed",)<span
                style="font-weight:bold">;</span>
              <br>
              <span style="font-weight:bold">#NAT </span> <br>
                     if (isbflagset(NAT)) setflag(NAT)<span
                style="font-weight:bold">;</span>
              <br>
              <span style="font-weight:bold">#NAT</span>
              <br>
              <span style="font-weight:bold">#TOPOHIDE</span>
              <br>
                      to<span style="font-weight:bold">opology_hiding("UC");</span>
              <br>
              <span style="font-weight:bold">#TOPOHIDE</span>
              <br>
                     route(RELAY)<span style="font-weight:bold">;</span>
              <br>
              <br>
              }</font><br>
            <br>
          </span></div>
        <div> 
          <div>
            <div><br>
            </div>
          </div>
        </div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Tue, Jan 24, 2017 at 12:09 PM,
          Bogdan-Andrei Iancu <span dir="ltr"><<a
              moz-do-not-send="true" href="mailto:bogdan@opensips.org"
              target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:bogdan@opensips.org">bogdan@opensips.org</a></a>></span> wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div bgcolor="#FFFFFF" text="#000000"> <tt>Hi,<br>
                <br>
                It should be ok, but in your case the TH will not
                benefit from the dialog module (you do not use it) - all
                the info to he hidden will be appended to the Contact
                hdr (as extra param), while when using the dialog
                support, this info is stored into the dialog.<br>
                <br>
                To be honest, I never tried the combination of nathelper
                and TH _without_ dialog support. But give it a try...if
                you get a trace, I can check if ok.<br>
                <br>
                Regards,<br>
              </tt><span class="">
                <pre class="m_5841879235360832932moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a moz-do-not-send="true" class="m_5841879235360832932moz-txt-link-freetext" href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.<wbr>com</a></pre>
    </span><div><div class="h5"><div class="m_5841879235360832932moz-cite-prefix">On 01/24/2017 02:03 PM, Alberto
      Gonzales wrote:

    </div>
    <blockquote type="cite">
      <div dir="ltr">Thanks Bogdan, Well, I have <span style="font-family:monospace;font-size:10.4px">fix_nated_contact()
          at the very top of my script :</span>
        <div><span style="font-family:monospace;font-size:10.4px">

          </span></div>
        <div>
          <div style="font-size:12.8px"><span style="font-family:monospace">route{
              

              

                     force_rport()<span style="font-weight:bold;color:rgb(84,255,255)">;</span><span style="color:rgb(0,0,0)">
              </span>

                     if (nat_uac_test("23")) {
              

                         fix_nated_contact()<span style="font-weight:bold;color:rgb(84,255,255)"><wbr>;</span><span style="color:rgb(0,0,0)">
              </span>

                         setflag(NAT)<span style="font-weight:bold;color:rgb(84,255,255)">;</span><span style="color:rgb(0,0,0)">
              </span>

                     }
              

              

              

                     if (!mf_process_maxfwd_header("<wbr>10")) {
              

                             sl_send_reply("<wbr>483","Too Many Hops")<span style="font-weight:bold;color:rgb(84,255,255)">;</span><span style="color:rgb(0,0,0)">
              </span>

                             exit<span style="font-weight:bold;color:rgb(84,255,255)">;</span><span style="color:rgb(0,0,0)">
              </span>

                     }

              

            </span></div>
          <div style="font-size:12.8px">....</div>
          <div style="font-size:12.8px">....</div>
          <div style="font-size:12.8px"><span style="font-family:monospace"><span style="color:rgb(0,0,0)">        if (has_totag()) { </span>

              <font color="#000000">               </font><span style="color:rgb(0,0,0);font-weight:bold"># sequential
                request withing a dialog should</span> 

              <font color="#000000">               </font><span style="color:rgb(0,0,0);font-weight:bold"># take the
                path determined by record-routing</span> 

              <font color="#000000">               <span style="font-weight:bold">#### remplazar : if
                  (loose_route()) {</span>  </font>

                             <font color="#0000ff">if
                (topology_hiding_match()) { </font>

              

              ...</span></div>
          <div style="font-size:12.8px"><span style="font-family:monospace">...</span></div>
          <div style="font-size:12.8px">              <b>## esconder
              topologia antes de pasar la llamada</b></div>
          <div style="font-size:12.8px"><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>

                     route(RELAY)<span style="font-weight:bold;color:rgb(84,255,255)">;</span><span style="color:rgb(0,0,0)"> </span>

              }</span></div>
        </div>
        <div style="font-size:12.8px"><span style="font-family:monospace">

          </span></div>
        <div style="font-size:12.8px"><span style="font-family:monospace">so is my script correct ?</span></div>
        <div style="font-size:12.8px"><span style="font-family:monospace">I just want to make sure I
            have a correct script before I do any further work on this.</span></div>
        <div style="font-size:12.8px"><span style="font-family:monospace">

          </span></div>
        <div style="font-size:12.8px"><span style="font-family:monospace">Thanks.</span></div>
      </div>
      <div class="gmail_extra">

        <div class="gmail_quote">On Tue, Jan 24, 2017 at 11:52 AM,
          Bogdan-Andrei Iancu <span dir="ltr"><<a moz-do-not-send="true" class="m_5841879235360832932moz-txt-link-abbreviated" href="mailto:bogdan@opensips.org" target="_blank">bogdan@opensips.org</a>></span> wrote:

          <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div bgcolor="#FFFFFF" text="#000000"> <tt>Hi,

                

                You can do TH with nathelper, BUT be sure to create the
                dialog + TH AFTER doing the fix_nated_contact().

                

                Regards,

              </tt><span>
                <pre class="m_5841879235360832932m_-1450853479943047810moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a moz-do-not-send="true" class="m_5841879235360832932m_-1450853479943047810moz-txt-link-freetext" href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.<wbr>com</a></pre>
    </span><div><div class="m_5841879235360832932h5"><div class="m_5841879235360832932m_-1450853479943047810moz-cite-prefix">On 01/20/2017 12:42 PM, Alberto
      Gonzales wrote:

    </div>
    </div></div><blockquote type="cite"><div><div class="m_5841879235360832932h5">
      <div dir="ltr">We used instruction in the book, which states at
        the end of the paragraph this : 
        <div>

        </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>

        </div>
        <div>I think our problem comes from the fact that we are using
          nathelper and also an rtpproxy in our script.</div>
        <div>

        </div>
        <div>can anyone provide help about activating topology hiding
          along with nathelper ?</div>
        <div>

        </div>
        <div>thanks in advance.</div>
        <div>

        </div>
      </div>
      <div class="gmail_extra">

        <div class="gmail_quote">On Fri, Jan 20, 2017 at 10:14 AM,
          Alberto Gonzales <span dir="ltr"><<a moz-do-not-send="true" class="m_5841879235360832932m_-1450853479943047810moz-txt-link-abbreviated" href="mailto:albertosgonzale@gmail.com" target="_blank">albertosgonzale@gmail.com</a>></span>
          wrote:

          <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="m_5841879235360832932m_-1450853479943047810HOEnZb">
              <div class="m_5841879235360832932m_-1450853479943047810h5">
                <div class="gmail_extra">

                  <div class="gmail_quote">On Fri, Jan 20, 2017 at 9:56
                    AM, Alberto Gonzales <span dir="ltr"><<a moz-do-not-send="true" class="m_5841879235360832932m_-1450853479943047810moz-txt-link-abbreviated" href="mailto:albertosgonzale@gmail.com" target="_blank">albertosgonzale@gmail.com</a>></span>
                    wrote:

                    <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>

                        </div>
                        <div>We have configured topology hiding in
                          opensips 2.2 this way : </div>
                        <div>

                        </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>

                        </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>

                            <font color="#000000">                </font><span style="color:rgb(0,0,0);font-weight:bold">#
                              sequential request withing a dialog should</span>
                            

                            <font color="#000000">                </font><span style="color:rgb(0,0,0);font-weight:bold">#
                              take the path determined by record-routing</span>
                            

                            <font color="#000000">                <span style="font-weight:bold">#### remplazar
                                : if (loose_route()) {</span>  </font>

                                           <font color="#0000ff">if
                              (topology_hiding_match()) {
                            </font>

                            

                            ...</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>

                                   route(RELAY)<span style="font-weight:bold;color:rgb(84,255,255)">;</span><span style="color:rgb(0,0,0)">
                            </span>

                            }

                            

                          </span></div>
                        <div>

                        </div>
                        <div>also what could be a quick test to see if
                          this hiding is working or not.</div>
                        <div>

                        </div>
                        <div>thanks in advance.</div>
                        <span class="m_5841879235360832932m_-1450853479943047810m_-1879352591039640362HOEnZb"><font color="#888888">
                            <div>

                            </div>
                            <div>Alberto</div>
                            <div>

                            </div>
                          </font></span></div>
                    </blockquote>
                  </div>
                  

                </div>
              </div>
            </div>
          </blockquote>
        </div>
        

      </div>
      

      <fieldset class="m_5841879235360832932m_-1450853479943047810mimeAttachmentHeader"></fieldset>
      

      </div></div><span><pre>______________________________<wbr>_________________
Users mailing list
<a moz-do-not-send="true" class="m_5841879235360832932m_-1450853479943047810moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a moz-do-not-send="true" class="m_5841879235360832932m_-1450853479943047810moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-<wbr>bin/mailman/listinfo/users</a>
</pre>
    </span></blockquote>
    

  </div>

</blockquote></div>
</div>



</blockquote>
</div></div></div></blockquote></div>
</div>



</blockquote>
</body></html>