<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <tt>Hi Dragomir,<br>
      <br>
      So, the problem is about the BYE. Just before sending BYE from
      Zoiper, please run on your opensips:<br>
          opensipsctl fifo list_tcp_conns<br>
      <br>
      Lets see if your SIP.JS still has a connection to OpenSIPS at that
      point.<br>
      <br>
      Best 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>

OpenSIPS Summit May 2017 Amsterdam
  <a class="moz-txt-link-freetext" href="http://www.opensips.org/events/Summit-2017Amsterdam.html">http://www.opensips.org/events/Summit-2017Amsterdam.html</a>
</pre>
    <div class="moz-cite-prefix">On 04/25/2017 12:14 AM, Dragomir
      Haralambiev wrote:<br>
    </div>
    <blockquote
cite="mid:CADzurO+7oYZSkrRiQUt2zRRR5MAXB9u1vFke1FB7gPBjPrGsqw@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hi Bogdan,
        <div><br>
        </div>
        <div>Thanks for the detailed and comprehensive answer.<br>
        </div>
        <div><br>
        </div>
        <div>Zoiper talking (connection is established) with SIP.JS</div>
        <div>Zoiper ---(over UDP)--> Opensips --(over WSS)--->
          SIP.JS</div>
        <div><br>
        </div>
        <div>Why not possible Opensips send BYE to SIP.JS over
          established connection?</div>
        <div>Why all is OK when SIP.JS send BYE?</div>
        <div><br>
        </div>
        <div>I need help to setup Opensips to solve this problem.<br>
        </div>
        <div><br>
        </div>
        <div>Best regards,</div>
        <div>Dragomir</div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">2017-04-24 17:47 GMT+03:00
          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>:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div bgcolor="#FFFFFF" text="#000000"> Hi,<br>
              <br>
              Same question, same answer - see <a
                moz-do-not-send="true"
                class="m_852646183527985223moz-txt-link-freetext"
                href="http://lists.opensips.org/pipermail/users/2017-April/036925.html"
                target="_blank"><a class="moz-txt-link-freetext" href="http://lists.opensips.org/">http://lists.opensips.org/</a><wbr>pipermail/users/2017-April/<wbr>036925.html</a><br>
              <br>
              Regards,<br>
              <pre class="m_852646183527985223moz-signature" cols="72">Bogdan-Andrei Iancu
  OpenSIPS Founder and Developer
  <a moz-do-not-send="true" class="m_852646183527985223moz-txt-link-freetext" href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.<wbr>com</a>

OpenSIPS Summit May 2017 Amsterdam
  <a moz-do-not-send="true" class="m_852646183527985223moz-txt-link-freetext" href="http://www.opensips.org/events/Summit-2017Amsterdam.html" target="_blank">http://www.opensips.org/<wbr>events/Summit-2017Amsterdam.<wbr>html</a>
</pre><span class="">
    <div class="m_852646183527985223moz-cite-prefix">On 04/21/2017 07:24 PM, Dragomir
      Haralambiev wrote:

    </div>
    </span><blockquote type="cite">
      <div dir="ltr"><span class="">
        <div>Hello,</div>
        <div>

        </div>
        <div>I have problem with "topology_hiding_match()" and WSS.</div>
        <div>

        </div>
        <div>Zoiper ---(send BYE)--> Opensips --(can not relay
          to)---> SIP.JS </div>
        <div>

        </div>
        <div>

        </div>
        <div>Here part ot script:</div>
        <div><span class="m_852646183527985223gmail-Apple-tab-span" style="white-space:pre-wrap">       </span>if
          (has_totag()) {</div>
        <div><span class="m_852646183527985223gmail-Apple-tab-span" style="white-space:pre-wrap">               </span>if
          (topology_hiding_match()) {</div>
        <div><span class="m_852646183527985223gmail-Apple-tab-span" style="white-space:pre-wrap">                               </span>t_relay();</div>
        <div><span class="m_852646183527985223gmail-Apple-tab-span" style="white-space:pre-wrap">                               </span>exit;</div>
        <div><span class="m_852646183527985223gmail-Apple-tab-span" style="white-space:pre-wrap">               </span>}</div>
        <div><span class="m_852646183527985223gmail-Apple-tab-span" style="white-space:pre-wrap">               </span>...</div>
        <div>

        </div>
        <div>Opensips receive BYE. When execute "t_relay()" give follow
          ERRORS:</div>
        <div>

        </div>
        <div><a moz-do-not-send="true" class="m_852646183527985223moz-txt-link-freetext">INFO:core:probe_max_sock_buff</a>: using snd buffer of 416 kb</div>
        <div><a moz-do-not-send="true" class="m_852646183527985223moz-txt-link-freetext">INFO:core:init_sock_keepalive</a>: TCP keepalive enabled on
          socket 23</div>
        <div>ERROR:core:tcp_connect_<wbr>blocking: timeout 99195 ms elapsed
          from 100000 s</div>
        <div>ERROR:proto_<a moz-do-not-send="true" class="m_852646183527985223moz-txt-link-freetext">ws:ws_sync_connect</a><wbr>: tcp_blocking_connect failed</div>
        <div>ERROR:proto_<a moz-do-not-send="true" class="m_852646183527985223moz-txt-link-freetext">ws:ws_connect</a>: connect failed</div>
        <div>ERROR:proto_<a moz-do-not-send="true" class="m_852646183527985223moz-txt-link-freetext">ws:proto_ws_send</a>: connect failed</div>
        <div>ERROR:tm:msg_send: send() for proto 5 failed</div>
        </span><div>ERROR:tm:t_forward_nonack: sending request failed<tt>scheduled
          </tt></div>
        <div>

        </div>
        <div>Where is problem?</div>
      </div>
      

      <fieldset class="m_852646183527985223mimeAttachmentHeader"></fieldset>
      

      <pre>______________________________<wbr>_________________
Users mailing list
<a moz-do-not-send="true" class="m_852646183527985223moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a moz-do-not-send="true" class="m_852646183527985223moz-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>

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



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