<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <tt>Hi, Samy!<br>
      <br>
      Can you make sure you are not calling topology_hiding() twice on
      the same request? Can you put an xlog just before each
      topology_hiding() apearence in your code to make sure?<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/14/2016 08:30 PM, SamyGo wrote:<br>
    </div>
    <blockquote
cite="mid:CAJUJwth+3HZ+sc1=s5GZLEY_257fOjfrMrQ-WOqiL=p1OJWT1w@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <p>Hi Razvan,</p>
        <p> <br>
          Here is the requested data.</p>
        <p><br>
        </p>
        <p><b>INITIAL INVITE: <br>
          </b>Via: SIP/2.0/TLS
          123.123.212.123:5061;branch=z9hG4bK442.8373b213.0;i=35f5</p>
        <div><b><br>
          </b></div>
        <div><b>200 OK from the B party as received by OpenSIPS:<br>
          </b>
          <div>Via: SIP/2.0/TLS
            118.151.101.64:5061;branch=z9hG4bK442.9a584727.0;i=11</div>
        </div>
        <div><br>
        </div>
        <div><br>
          <b>200 OK as sent out by OpenSIPS:<br>
          </b>
          <div>Via: SIP/2.0/TLS
123.123.212.123:5061;received=123.123.212.123;rport=48664;branch=z9hG4bK442.8373b213.0;i=35f5<br>
          </div>
          <div>Via: SIP/2.0/TLS
123.123.212.123:5061;received=123.123.212.123;rport=48664;branch=z9hG4bK442.8373b213.0;i=35f5</div>
        </div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>Here is the portion of debug log where the destination
          Answers the call and topology Hiding restore VIA twice.</div>
        <div><br>
        </div>
        <div><a moz-do-not-send="true"
            href="http://pastebin.com/z7pt7cwM">http://pastebin.com/z7pt7cwM</a><br>
        </div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>Thanks for your response and time looking at this for me.</div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>Regards,</div>
        <div>Sammy.</div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div class="gmail_extra">
          <div class="gmail_quote">On Nov 14, 2016 3:49 AM, "Răzvan
            Crainea" &lt;<a moz-do-not-send="true"
              href="mailto:razvan@opensips.org" target="_blank">razvan@opensips.org</a>&gt;
            wrote:<br type="attribution">
            <blockquote class="gmail_quote" style="margin:0px 0px 0px
              0.8ex;border-left:1px solid
              rgb(204,204,204);padding-left:1ex">
              <div bgcolor="#FFFFFF"> <tt>Hi, Samy!<br>
                  <br>
                  Can you post on pastebin debugging logs related to
                  this call? Also, can you also post the Via headers of
                  the initial INVITE and for the 200 OK received by
                  OpenSIPS?<br>
                  <br>
                  Best regards,<br>
                </tt>
                <pre class="gmail-m_6224990924350460335m_4438543260217129924moz-signature" cols="72">Răzvan Crainea
OpenSIPS Solutions
<a moz-do-not-send="true" class="gmail-m_6224990924350460335m_4438543260217129924moz-txt-link-abbreviated" href="http://www.opensips-solutions.com" target="_blank">www.opensips-solutions.com</a></pre>
                <div
                  class="gmail-m_6224990924350460335m_4438543260217129924moz-cite-prefix">On
                  11/12/2016 12:33 AM, SamyGo wrote:<br>
                </div>
                <blockquote type="cite">
                  <div dir="ltr">Hi,<br>
                    <br>
                    I'm using OpenSIPS 2.2.1 version and I'm facing a
                    weird situation where OpenSIPS is adding a
                    duplicated VIA header to the 200 OK, This only
                    happens when I've topology_hiding() engaged into the
                    call. 
                    <div><br>
                    </div>
                    <div>The scenario is very simple; two users making
                      call to each other on the same OpenSIPS but with
                      topology_hiding(). As a consequence of this double
                      VIA the caller device doesn't trigger the ACK and
                      hence we don't get media stream established
                      between devices.</div>
                    <div><br>
                      <br>
                      <b>WITH TOPOLOGYHIDING:</b></div>
                    <div>
                      <div><font face="monospace, monospace">SIP/2.0 200
                          OK</font></div>
                      <div><font face="monospace, monospace">Via:
                          SIP/2.0/TLS 10.1.10.51:59231;received=7X.X<wbr>X.XX.X7;rport=59231;branch=z9h<wbr>G4bK-607165482-63</font></div>
                      <div><font face="monospace, monospace">Via:
                          SIP/2.0/TLS 10.1.10.51:59231;received=</font><span
                          style="font-family:monospace,monospace">7X.</span><span
                          style="font-family:monospace,monospace">X<wbr>X.XX.X7</span><font
                          face="monospace, monospace">;rport=59231;branch=z9h<wbr>G4bK-607165482-63</font></div>
                      <div><font face="monospace, monospace">CSeq: 1
                          INVITE</font></div>
                    </div>
                    <div>...<br>
                      <br>
                      <b>WITHOUT TOPOHIDING:<br>
                      </b>
                      <div><font face="monospace, monospace">SIP/2.0 200
                          OK</font></div>
                      <div><font face="monospace, monospace">Via:
                          SIP/2.0/TLS 10.1.10.51:59223;received=</font><span
                          style="font-family:monospace,monospace">7X.</span><span
                          style="font-family:monospace,monospace">X<wbr>X.XX.X7</span><font
                          face="monospace, monospace">;rport=59223;branch=z9h<wbr>G4bK-607166212-58</font></div>
                      <div><font face="monospace, monospace">CSeq: 1
                          INVITE</font></div>
                      <div><br>
                        <br>
                        The only difference between the two scenarios is
                        the function topology_hiding(); is commented
                        out.<br>
                        <br>
                      </div>
                      <div>It seems like a bug to me, can anyone guide
                        me here validate this. <br>
                        <b><br>
                          OpenSIPS Version:</b><br>
                        <div><font face="monospace, monospace">version:
                            opensips 2.2.1 (x86_64/linux)</font></div>
                        <div><font face="monospace, monospace">flags:
                            STATS: On, DISABLE_NAGLE, USE_MCAST,
                            SHM_MMAP, PKG_MALLOC, F_MALLOC,
                            FAST_LOCK-ADAPTIVE_WAIT</font></div>
                        <div><font face="monospace, monospace">ADAPTIVE_WAIT_LOOPS=1024,
                            MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16,
                            MAX_URI_SIZE 1024, BUF_SIZE 65535</font></div>
                        <div><font face="monospace, monospace">poll
                            method support: poll, epoll_lt, epoll_et,
                            sigio_rt, select.</font></div>
                        <div><font face="monospace, monospace">git
                            revision: 68ace2e</font></div>
                        <div><font face="monospace, monospace">main.c
                            compiled on 18:34:37 Sep 28 2016 with gcc
                            4.8</font></div>
                        <div><br>
                        </div>
                        <br>
                      </div>
                      <div>Thanks,</div>
                      <div>Sammy</div>
                      <div> </div>
                      <br>
                      <br>
                    </div>
                  </div>
                  <br>
                  <fieldset
class="gmail-m_6224990924350460335m_4438543260217129924mimeAttachmentHeader"></fieldset>
                  <br>
                  <pre>______________________________<wbr>_________________
Users mailing list
<a moz-do-not-send="true" class="gmail-m_6224990924350460335m_4438543260217129924moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a moz-do-not-send="true" class="gmail-m_6224990924350460335m_4438543260217129924moz-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>
    </blockquote>
    

  </div>


______________________________<wbr>_________________

Users mailing list

<a moz-do-not-send="true" href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>

<a moz-do-not-send="true" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-<wbr>bin/mailman/listinfo/users</a>


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


<fieldset class="mimeAttachmentHeader"></fieldset>
<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>
</body></html>