<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <tt>Hi Dragomir,<br>
      <br>
      In your case, you make a call to UA using WebSockets (running
      inside Crome) - you cannot open a _new_ WS connection to the UA
      inside Crome. In order to communicate with that UA, the UA has to
      create the WS connection towards OpenSIPS.<br>
      According to the logs, there is no such connection and OpenSIPS is
      trying to create one, but the UA in Crome has no listening
      capabilities.<br>
      <br>
      Could you check with "opensipsctl fifo list_tcp_conns" to see if
      your Crome has a connection into OpenSIPS.<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/05/2017 03:42 PM, Dragomir
      Haralambiev wrote:<br>
    </div>
    <blockquote
cite="mid:CADzurOLcz062JAhdNPjq++Yzc_QUGDKpoFcDaVHGTCQ+DO9DpA@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hello,
        <div><br>
        </div>
        <div>I try to make connection with follow sheme:<br>
          <br>
          Zoiper (sip over udp) -----> (Sip over udp) Opensips (WSS)
          -------> <span style="font-size:12.8px">Crome(</span><a
            moz-do-not-send="true" href="http://tryit.jssip.net/"
            target="_blank" style="font-size:12.8px">tryit.jssip.net</a> I
          can't setup tcp or udp<span style="font-size:12.8px">)</span></div>
        <div><span style="font-size:12.8px"><br>
          </span></div>
        <div><span style="font-size:12.8px">Hot to setup WSS in Opensips
            to use WSS over udp?</span></div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">2017-04-04 12:57 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"> <tt>Hi Dragomir,<br>
                <br>
                Those errors translate into a failed attempt to connect
                via TCP (for WSS protocol) to the needed SIP
                destination. OR, when you do t_relay() in the script,
                you have a SIP destination that does not accept the TCP
                connections from OpenSIPS. Are you sure that the
                destination/callee party is able to accept incoming TCP
                connections ?<br>
                <br>
                Best regards,<br>
              </tt>
              <pre class="m_-888924642134222596moz-signature" cols="72">Bogdan-Andrei Iancu
  OpenSIPS Founder and Developer
  <a moz-do-not-send="true" class="m_-888924642134222596moz-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_-888924642134222596moz-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><div><div class="h5">
    <div class="m_-888924642134222596moz-cite-prefix">On 04/04/2017 12:16 AM, Dragomir
      Haralambiev wrote:

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

        </div>
        <div>I try to test WebRTC.

          OS: CentOs7.2

          Opensips: 2.2.3

          <span>Tutorial:</span>

        </div>
        <div><a moz-do-not-send="true" href="http://www.opensips.org/Documentation/Tutorials-WebSocket-2-2" target="_blank">http://www.opensips.org/<wbr>Documentation/Tutorials-<wbr>WebSocket-2-2</a>

        </div>
        <div>

        </div>
        <div>Zoiper -------> Opensips -----> Crome(<a moz-do-not-send="true" href="http://tryit.jssip.net" target="_blank">tryit.jssip.net</a>)

          

        </div>
        <div>In Opensips log have many ERRORS:

          

        </div>
        <div>rtpengine[719]: INFO: [xgo3OaZkRrYqO3SQFH03JQ..]: Received
          command 'offer' from <a moz-do-not-send="true" href="http://127.0.0.1:53928" target="_blank">127.0.0.1:53928</a></div>
        <div>rtpengine[719]: NOTICE: [xgo3OaZkRrYqO3SQFH03JQ..]:
          Creating new call</div>
        <div>rtpengine[719]: INFO: [xgo3OaZkRrYqO3SQFH03JQ..]: offer
          time = 0.001532 sec</div>
        <div>rtpengine[719]: INFO: [xgo3OaZkRrYqO3SQFH03JQ..]: Replying
          to 'offer' from <a moz-do-not-send="true" href="http://127.0.0.1:53928" target="_blank">127.0.0.1:53928</a></div>
        <div>rtpengine[719]: INFO: [xgo3OaZkRrYqO3SQFH03JQ..]: Received
          command 'offer' from <a moz-do-not-send="true" href="http://127.0.0.1:53928" target="_blank">127.0.0.1:53928</a></div>
        <div>rtpengine[719]: INFO: [xgo3OaZkRrYqO3SQFH03JQ..]: offer
          time = 0.000116 sec</div>
        <div>rtpengine[719]: INFO: [xgo3OaZkRrYqO3SQFH03JQ..]: Replying
          to 'offer' from <a moz-do-not-send="true" href="http://127.0.0.1:53928" target="_blank">127.0.0.1:53928</a></div>
        <div>rtpengine[719]: INFO: [xgo3OaZkRrYqO3SQFH03JQ..]: Received
          command 'offer' from <a moz-do-not-send="true" href="http://127.0.0.1:53928" target="_blank">127.0.0.1:53928</a></div>
        <div>rtpengine[719]: INFO: [xgo3OaZkRrYqO3SQFH03JQ..]: offer
          time = 0.000086 sec</div>
        <div>rtpengine[719]: INFO: [xgo3OaZkRrYqO3SQFH03JQ..]: Replying
          to 'offer' from <a moz-do-not-send="true" href="http://127.0.0.1:53928" target="_blank">127.0.0.1:53928</a></div>
        <div>/usr/local/sbin/opensips[4822]<wbr>:
          <a moz-do-not-send="true" class="m_-888924642134222596moz-txt-link-freetext">INFO:core:probe_max_sock_buff</a>: using snd buffer of 416 kb</div>
        <div>/usr/local/sbin/opensips[4822]<wbr>:
          <a moz-do-not-send="true" class="m_-888924642134222596moz-txt-link-freetext">INFO:core:init_sock_keepalive</a>: TCP keepalive enabled on socket
          21</div>
        <div>/usr/local/sbin/opensips[4822]<wbr>:
          ERROR:core:tcp_connect_<wbr>blocking: timeout 99200 ms elapsed from
          100000 s</div>
        <div>/usr/local/sbin/opensips[4822]<wbr>:
          ERROR:proto_<a moz-do-not-send="true" class="m_-888924642134222596moz-txt-link-freetext">wss:ws_sync_<wbr>connect</a>: tcp_blocking_connect failed</div>
        <div>/usr/local/sbin/opensips[4822]<wbr>: ERROR:proto_<a moz-do-not-send="true" class="m_-888924642134222596moz-txt-link-freetext">wss:ws_connect</a>:
          connect failed</div>
        <div>/usr/local/sbin/opensips[4822]<wbr>:
          ERROR:proto_<a moz-do-not-send="true" class="m_-888924642134222596moz-txt-link-freetext">wss:proto_wss_send</a><wbr>: connect failed</div>
        <div>/usr/local/sbin/opensips[4822]<wbr>: ERROR:tm:msg_send: send()
          for proto 6 failed</div>
        <div>/usr/local/sbin/opensips[4822]<wbr>: ERROR:tm:t_forward_nonack:
          sending request failed</div>
        <div>/usr/local/sbin/opensips[4822]<wbr>:
          <a moz-do-not-send="true" class="m_-888924642134222596moz-txt-link-freetext">INFO:core:probe_max_sock_buff</a>: using snd buffer of 416 kb</div>
        <div>/usr/local/sbin/opensips[4822]<wbr>:
          <a moz-do-not-send="true" class="m_-888924642134222596moz-txt-link-freetext">INFO:core:init_sock_keepalive</a>: TCP keepalive enabled on socket
          21</div>
        <div>/usr/local/sbin/opensips[4822]<wbr>:
          ERROR:core:tcp_connect_<wbr>blocking: timeout 101189 ms elapsed
          from 100000 s</div>
        <div>/usr/local/sbin/opensips[4822]<wbr>:
          ERROR:proto_<a moz-do-not-send="true" class="m_-888924642134222596moz-txt-link-freetext">wss:ws_sync_<wbr>connect</a>: tcp_blocking_connect failed</div>
        <div>/usr/local/sbin/opensips[4822]<wbr>: ERROR:proto_<a moz-do-not-send="true" class="m_-888924642134222596moz-txt-link-freetext">wss:ws_connect</a>:
          connect failed</div>
        <div>/usr/local/sbin/opensips[4822]<wbr>:
          ERROR:proto_<a moz-do-not-send="true" class="m_-888924642134222596moz-txt-link-freetext">wss:proto_wss_send</a><wbr>: connect failed</div>
        <div>/usr/local/sbin/opensips[4822]<wbr>: ERROR:tm:msg_send: send()
          for proto 6 failed</div>
        <div>/usr/local/sbin/opensips[4822]<wbr>: ERROR:tm:t_forward_nonack:
          sending request failed</div>
        <div>rtpengine[719]: NOTICE: [xgo3OaZkRrYqO3SQFH03JQ.. port
          50878]: Unknown STUN attribute: 0xc057</div>
        <div>rtpengine[719]: NOTICE: [xgo3OaZkRrYqO3SQFH03JQ.. port
          50879]: Unknown STUN attribute: 0xc057</div>
        <div>rtpengine[719]: INFO: [xgo3OaZkRrYqO3SQFH03JQ..]: Received
          command 'answer' from <a moz-do-not-send="true" href="http://127.0.0.1:40991" target="_blank">127.0.0.1:40991</a></div>
        <div>rtpengine[719]: INFO: [xgo3OaZkRrYqO3SQFH03JQ..]: answer
          time = 0.001351 sec</div>
        <div>rtpengine[719]: INFO: [xgo3OaZkRrYqO3SQFH03JQ..]: Replying
          to 'answer' from <a moz-do-not-send="true" href="http://127.0.0.1:40991" target="_blank">127.0.0.1:40991</a></div>
        <div>rtpengine[719]: INFO: [xgo3OaZkRrYqO3SQFH03JQ.. port
          50878]: DTLS: Peer certificate accepted</div>
        <div>rtpengine[719]: WARNING: [xgo3OaZkRrYqO3SQFH03JQ.. port
          50888]: RTP packet with unknown payload type 95 received</div>
        <div>rtpengine[719]: INFO: [xgo3OaZkRrYqO3SQFH03JQ.. port
          50878]: DTLS-SRTP successfully negotiated</div>
        <div>rtpengine[719]: INFO: [xgo3OaZkRrYqO3SQFH03JQ.. port
          50879]: DTLS: Peer certificate accepted</div>
        <div>rtpengine[719]: INFO: [xgo3OaZkRrYqO3SQFH03JQ.. port
          50879]: DTLS-SRTP successfully negotiated</div>
        <div>rtpengine[719]: NOTICE: [xgo3OaZkRrYqO3SQFH03JQ.. port
          50878]: Unknown STUN attribute: 0xc057</div>
        <div>rtpengine[719]: NOTICE: [xgo3OaZkRrYqO3SQFH03JQ.. port
          50879]: Unknown STUN attribute: 0xc057</div>
        <div>rtpengine[719]: NOTICE: [xgo3OaZkRrYqO3SQFH03JQ.. port
          50878]: Unknown STUN attribute: 0xc057</div>
        <div>rtpengine[719]: NOTICE: [xgo3OaZkRrYqO3SQFH03JQ.. port
          50879]: Unknown STUN attribute: 0xc057</div>
        <div>rtpengine[719]: INFO: [xgo3OaZkRrYqO3SQFH03JQ.. port
          50879]: ICE negotiated: local interface 192.168.1.130</div>
        <div>rtpengine[719]: NOTICE: [xgo3OaZkRrYqO3SQFH03JQ.. port
          50878]: Unknown STUN attribute: 0xc057</div>
        <div>rtpengine[719]: NOTICE: [xgo3OaZkRrYqO3SQFH03JQ.. port
          50879]: Unknown STUN attribute: 0xc057</div>
        <div>rtpengine[719]: NOTICE: [xgo3OaZkRrYqO3SQFH03JQ.. port
          50878]: Unknown STUN attribute: 0xc057</div>
        <div>rtpengine[719]: NOTICE: [xgo3OaZkRrYqO3SQFH03JQ.. port
          50879]: Unknown STUN attribute: 0xc057</div>
        <div>rtpengine[719]: INFO: [xgo3OaZkRrYqO3SQFH03JQ.. port
          50878]: Confirmed peer address as <a moz-do-not-send="true" href="http://192.168.1.104:55185" target="_blank">192.168.1.104:55185</a></div>
        <div>rtpengine[719]: INFO: [xgo3OaZkRrYqO3SQFH03JQ.. port
          50888]: Confirmed peer address as <a moz-do-not-send="true" href="http://192.168.1.104:8000" target="_blank">192.168.1.104:8000</a></div>
        <div>rtpengine[719]: INFO: [xgo3OaZkRrYqO3SQFH03JQ.. port
          50889]: Confirmed peer address as <a moz-do-not-send="true" href="http://192.168.1.104:8001" target="_blank">192.168.1.104:8001</a></div>
        <div>rtpengine[719]: NOTICE: [xgo3OaZkRrYqO3SQFH03JQ.. port
          50878]: Unknown STUN attribute: 0xc057</div>
        <div>rtpengine[719]: NOTICE: [xgo3OaZkRrYqO3SQFH03JQ.. port
          50879]: Unknown STUN attribute: 0xc057</div>
        <div>rtpengine[719]: INFO: [xgo3OaZkRrYqO3SQFH03JQ.. port
          50879]: Confirmed peer address as <a moz-do-not-send="true" href="http://192.168.1.104:55188" target="_blank">192.168.1.104:55188</a></div>
        <div>rtpengine[719]: NOTICE: [xgo3OaZkRrYqO3SQFH03JQ.. port
          50878]: Unknown STUN attribute: 0xc057</div>
        <div>rtpengine[719]: NOTICE: [xgo3OaZkRrYqO3SQFH03JQ.. port
          50879]: Unknown STUN attribute: 0xc057</div>
        <div>rtpengine[719]: INFO: [xgo3OaZkRrYqO3SQFH03JQ..]: Received
          command 'delete' from <a moz-do-not-send="true" href="http://127.0.0.1:40991" target="_blank">127.0.0.1:40991</a></div>
        <div>rtpengine[719]: INFO: [xgo3OaZkRrYqO3SQFH03JQ..]:
          Scheduling deletion of call branch 'u4ur4tpq02' (via-branch
          '') in 30 seconds</div>
        <div>rtpengine[719]: INFO: [xgo3OaZkRrYqO3SQFH03JQ..]: delete
          time = 0.000072 sec</div>
        <div>rtpengine[719]: INFO: [xgo3OaZkRrYqO3SQFH03JQ..]: Replying
          to 'delete' from <a moz-do-not-send="true" href="http://127.0.0.1:40991" target="_blank">127.0.0.1:40991</a>  </div>
        <div>

        </div>
        <div>

        </div>
        <div>Regards,</div>
        <div>Dragomir</div>
      </div>
      

      <fieldset class="m_-888924642134222596mimeAttachmentHeader"></fieldset>
      

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