<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <tt>Can you put on pastebin the debug logs for the ACK?<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>
    <div class="moz-cite-prefix">On 11/15/2016 03:44 PM, Denis wrote:<br>
    </div>
    <blockquote cite="mid:1986770232.20161115164407@ptl.ru" type="cite">
      <title>Re: [OpenSIPS-Users] Opensips 2.2.2 and top hiding</title>
      <span style=" font-family:'Times New Roman'; font-size: 12pt;">Hello
        Ben.<br>
        <br>
        I am using loadbalacer module and using only for initial INVITE.<br>
        <br>
      </span><a moz-do-not-send="true" style=" font-family:'arial';
        font-size: 10pt;" href="mailto:denis7979@mail.ru">mailto:denis7979@mail.ru</a><br>
      <br>
      <table bgcolor="#ffffff">
        <tbody>
          <tr>
            <td bgcolor="#0000ff" width="2"><br>
            </td>
            <td><span style=" font-family:'calibri'; font-size: 11pt;">You
                said you are doing load balancing as well. Are you doing
                load balancing on the ACK? What module are you using
                (dispatcher, loadbalancer, etc.)?<br>
                <br>
                Load balancing functions can change the R-URI.<br>
                <br>
                <br>
                Ben Newlin<br>
                <br>
                <span style=" font-size: 12pt;"><b>From: </b><a class="moz-txt-link-rfc2396E" href="mailto:users-bounces@lists.opensips.org">&lt;users-bounces@lists.opensips.org&gt;</a>
                  on behalf of Denis <a class="moz-txt-link-rfc2396E" href="mailto:denis7979@mail.ru">&lt;denis7979@mail.ru&gt;</a><br>
                  <b>Reply-To: </b>OpenSIPS users mailling list
                  <a class="moz-txt-link-rfc2396E" href="mailto:users@lists.opensips.org">&lt;users@lists.opensips.org&gt;</a><br>
                  <b>Date: </b>Tuesday, November 15, 2016 at 8:19 AM<br>
                  <b>To: </b>Răzvan Crainea
                  <a class="moz-txt-link-rfc2396E" href="mailto:razvan@opensips.org">&lt;razvan@opensips.org&gt;</a>, OpenSIPS users mailling
                  list <a class="moz-txt-link-rfc2396E" href="mailto:users@lists.opensips.org">&lt;users@lists.opensips.org&gt;</a><br>
                  <b>Subject: </b>Re: [OpenSIPS-Users] Opensips 2.2.2
                  and top hiding<br>
                  <br>
                  <span style=" font-family:'times new roman';">Hello,
                    Razvan!<br>
                    <br>
                    No, i don`t make any modification for that variables<br>
                    <br>
                    "<span style=" font-size: 9pt;">  if (match_dialog()
                      || topology_hiding_match()) {<br>
                      <br>
                       if (!$DLG_status == NULL) {<br>
                       xlog("L_INFO", "Route0:$rm was received (IPS=$si,
                      IPD=$rd, CALLID=$ci, FROMTAG=$ft, TOTAG=$tt,
                      AUTH=$au) and RURI = $ru/$rd");<br>
                         force_rport();<br>
                         route(1);<br>
                         exit;<br>
                       }<br>
                      <br>
                      }<span style=" font-size: 12pt;">"<br>
                        <br>
                        The information from a syslog.<br>
                        <br>
                        "Route0:ACK was received (IPS=2.2.2.2,
                        IPD=3.3.3.3,
                        CALLID=82158NWE4MmU0NmJiZDU2MzA4OWM1MGFiZjU1Zjg2YTA4NWM,
                        FROMTAG=b83b533d, TOTAG=6A3BE0-1AA9,
                        AUTH=&lt;null&gt;) and RURI =
                        <a class="moz-txt-link-abbreviated" href="mailto:sip:3364021@3.3.3.3:5068/3.3.3.3">sip:3364021@3.3.3.3:5068/3.3.3.3</a>"<br>
                        <br>
                      </span></span></span></span></span><a
                moz-do-not-send="true" style=" font-family:'arial';
                font-size: 10pt;" href="mailto:denis7979@mail.ru">mailto:denis7979@mail.ru</a><br>
              <table bgcolor="#ffffff">
                <tbody>
                  <tr>
                    <td bgcolor="#0000ff" width="2"><br>
                    </td>
                    <td><span style=" font-family:'times new roman';
                        font-size: 12pt;">Hi, Denis!<br>
                        <br>
                        Are you modifying the $ru/$rd variables anyhwere
                        in your script for that ACK? I am seeing the
                        R-URI of the ACK going to 3.3.3.3:5068:<br>
                        ACK </span><a moz-do-not-send="true" style="
                        font-family:'times new roman'; font-size: 12pt;"
                        href="mailto:sip:3364021@3.3.3.3:5068">sip:3364021@3.3.3.3:5068</a><span
                        style=" font-family:'times new roman';
                        font-size: 12pt;"> SIP/2.0.<br>
                        However, it should be:<br>
                        ACK </span><a moz-do-not-send="true" style="
                        font-family:'times new roman'; font-size: 12pt;"
                        href="mailto:sip:3364021@4.4.4.4:5060">sip:3364021@4.4.4.4:5060</a><span
                        style=" font-family:'times new roman';
                        font-size: 12pt;"> SIP/2.0.<br>
                        <br>
                        Can you try printing the $ru variable just after
                        the topology_hiding_match() function?<br>
                        <br>
                        Best regards,<br>
                        Răzvan Crainea<br>
                        OpenSIPS Solutions<br>
                      </span><a moz-do-not-send="true" style="
                        font-family:'times new roman'; font-size: 12pt;"
                        href="http://www.opensips-solutions.com">www.opensips-solutions.com</a><br>
                      <span style=" font-family:'times new roman';
                        font-size: 12pt;">On 11/15/2016 02:22 PM, Denis
                        wrote:<br>
                      </span>
                      <table>
                        <tbody>
                          <tr>
                            <td bgcolor="#3200ff" width="2"><br>
                            </td>
                            <td><span style=" font-family:'times new
                                roman'; font-size: 12pt;">Opensips 2.2.2
                                and top hiding Hello!<br>
                                <br>
                                I try to make top hiding using
                                topology_hiding module.<br>
                                In attachment you can find a log of
                                unsuccessful call.<br>
                                <br>
                                Scheme of the call<br>
                                <br>
                                SIP UA (2.2.2.2) -&gt; Opensips with top
                                hiding (1.1.1.1) -&gt; another Opensis
                                proxy (3.3.3.3) - &gt; PSTN GW (4.4.4.4)
                                -&gt; PSTN.<br>
                                <br>
                                As i understand,  the problem is that
                                Opensips proxy cannot send ACK (on 200
                                OK) to PSTN GW because RURI and Route
                                header has similar IP, namely 3.3.3.3.<br>
                                <br>
                                I am using "<span style=" font-size:
                                  9pt;">topology_hiding("C");<span
                                    style=" font-size: 12pt;">" function
                                    for top hiding.<br>
                                    <br>
                                    The call log was gathered from
                                    1.1.1.1<br>
                                    <br>
                                    Thank you for any help.<br>
                                    <br>
                                    P.S. On 1.1.1.1 i also try to make
                                    load balancing.<br>
                                    <br>
                                  </span></span></span><a
                                moz-do-not-send="true" style="
                                font-family:'arial'; font-size: 10pt;"
                                href="mailto:denis7979@mail.ru">mailto:denis7979@mail.ru</a>
                              <br>
                              <br>
                              <span style=" font-family:'times new
                                roman'; font-size: 12pt;">_______________________________________________<br>
                                Users mailing list<br>
                              </span><a moz-do-not-send="true" style="
                                font-family:'times new roman';
                                font-size: 12pt;"
                                href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
                              <a moz-do-not-send="true" style="
                                font-family:'times new roman';
                                font-size: 12pt;"
                                href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a></td>
                          </tr>
                        </tbody>
                      </table>
                    </td>
                  </tr>
                </tbody>
              </table>
            </td>
          </tr>
        </tbody>
      </table>
      <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>