<div dir="ltr"><div style="font-size:12.8px">When add in <a href="http://sip.ua/" target="_blank">SIP.UA</a>(sip.js):</div><div style="font-size:12.8px"><span class="gmail-m_8913355927111302957gmail-Apple-tab-span" style="white-space:pre-wrap"> </span>hackIpInContact: true,</div><div style="font-size:12.8px"><span class="gmail-m_8913355927111302957gmail-Apple-tab-span" style="white-space:pre-wrap"> </span>contactTransport: "wss",</div><div style="font-size:12.8px"><span class="gmail-m_8913355927111302957gmail-Apple-tab-span" style="white-space:pre-wrap"> </span>rtcpMuxPolicy: 'negotiate',</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">All working fine.</div><div style="font-size:12.8px">Thanks Bogdan!</div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-05-18 16:28 GMT+03:00 Bogdan-Andrei Iancu <span dir="ltr"><<a href="mailto:bogdan@opensips.org" target="_blank">bogdan@opensips.org</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>maybe you should reply it again on the mailing list too, so
people can benefit of it ;)</tt><span class=""><br>
<pre class="m_-5872086569655355815moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="m_-5872086569655355815moz-txt-link-freetext" href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.<wbr>com</a>
OpenSIPS Summit May 2017 Amsterdam
<a class="m_-5872086569655355815moz-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><div><div class="h5"><div class="m_-5872086569655355815moz-cite-prefix">On 05/18/2017 04:20 PM, Dragomir
Haralambiev wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div>When add in <a href="http://SIP.UA" target="_blank">SIP.UA</a>:</div>
<div><span class="m_-5872086569655355815gmail-Apple-tab-span" style="white-space:pre-wrap"> </span>hackIpInContact:
true,</div>
<div><span class="m_-5872086569655355815gmail-Apple-tab-span" style="white-space:pre-wrap"> </span>contactTransport:
"wss",</div>
<div><span class="m_-5872086569655355815gmail-Apple-tab-span" style="white-space:pre-wrap"> </span>rtcpMuxPolicy:
'negotiate',</div>
<div><br>
</div>
<div>All working fine.</div>
<div>Thanks Bogdan!</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">2017-05-18 13:42 GMT+03:00
Bogdan-Andrei Iancu <span dir="ltr"><<a href="mailto:bogdan@opensips.org" target="_blank"></a><a class="m_-5872086569655355815moz-txt-link-abbreviated" href="mailto:bogdan@opensips.org" target="_blank">bogdan@opensips.org</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,<br>
<br>
Just to update the list with the outcome of this
investigation.<br>
</tt><br>
<tt>The problem is generated by an ambiguity in WS/WSS
specs (RFC 7118) which state that a WSS client must
advertise "transport=ws" - this is really confusing for
a SIP proxy which has no clue on which transport (WS or
WSS) to use to reach the user.<br>
<br>
Most of the WSS UAC decided to disobey the IETF specs
and to actually advertise wss. See the case for SIPjs:<br>
<a class="m_-5872086569655355815m_-3570097487231027143m_404293194474949616moz-txt-link-freetext" href="https://github.com/onsip/SIP.js/issues/97" target="_blank">https://github.com/onsip/SIP.j<wbr>s/issues/97</a>
<br>
<br>
After updating the SIP.js client, the call flow works
like a charm.<br>
<br>
Best regards,<br>
</tt><span>
<pre class="m_-5872086569655355815m_-3570097487231027143moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="m_-5872086569655355815m_-3570097487231027143moz-txt-link-freetext" href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.<wbr>com</a>
OpenSIPS Summit May 2017 Amsterdam
<a class="m_-5872086569655355815m_-3570097487231027143moz-txt-link-freetext" href="http://www.opensips.org/events/Summit-2017Amsterdam.html" target="_blank">http://www.opensips.org/events<wbr>/Summit-2017Amsterdam.html</a>
</pre>
</span><div><div class="m_-5872086569655355815h5"><div class="m_-5872086569655355815m_-3570097487231027143moz-cite-prefix">On 04/26/2017 02:03 PM, Bogdan-Andrei
Iancu wrote:
</div>
<blockquote type="cite">
<tt>Thank you Dragomir,
So, there is an existing connection to your browser.
Please redo the list_tcp_conns and send me the capture of the
BYE request received by OpenSIPS.
Best regards,
</tt>
<pre class="m_-5872086569655355815m_-3570097487231027143moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="m_-5872086569655355815m_-3570097487231027143moz-txt-link-freetext" href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.<wbr>com</a>
OpenSIPS Summit May 2017 Amsterdam
<a class="m_-5872086569655355815m_-3570097487231027143moz-txt-link-freetext" href="http://www.opensips.org/events/Summit-2017Amsterdam.html" target="_blank">http://www.opensips.org/events<wbr>/Summit-2017Amsterdam.html</a>
</pre>
<div class="m_-5872086569655355815m_-3570097487231027143moz-cite-prefix">On 04/25/2017 04:35 PM, Dragomir
Haralambiev wrote:
</div>
<blockquote type="cite">
<div dir="ltr">
<div>Here is connection list before send BYE</div>
<div>
</div>
<div>[root@dev opensips]# opensipsctl fifo list_tcp_conns</div>
<div>Connection:: ID=1 Type=wss State=0
Source=<IP:SIP.JS>0:59562
Destination=<IP:Opensips>:1006<wbr>2 Lifetime=2017-04-25
16:31:14</div>
<div>
</div>
</div>
<div class="gmail_extra">
<div class="gmail_quote">2017-04-25 11:37 GMT+03:00
Bogdan-Andrei Iancu <span dir="ltr"><<a class="m_-5872086569655355815m_-3570097487231027143moz-txt-link-abbreviated" href="mailto:bogdan@opensips.org" target="_blank">bogdan@opensips.org</a>></span>:
<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,
So, the problem is about the BYE. Just before sending
BYE from Zoiper, please run on your opensips:
opensipsctl fifo list_tcp_conns
Lets see if your SIP.JS still has a connection to
OpenSIPS at that point.
Best regards,
</tt><span>
<pre class="m_-5872086569655355815m_-3570097487231027143m_7954335389196049544moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="m_-5872086569655355815m_-3570097487231027143m_7954335389196049544moz-txt-link-freetext" href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.<wbr>com</a>
OpenSIPS Summit May 2017 Amsterdam
<a class="m_-5872086569655355815m_-3570097487231027143m_7954335389196049544moz-txt-link-freetext" href="http://www.opensips.org/events/Summit-2017Amsterdam.html" target="_blank">http://www.opensips.org/events<wbr>/Summit-2017Amsterdam.html</a>
</pre>
</span><div><div class="m_-5872086569655355815m_-3570097487231027143h5"><div class="m_-5872086569655355815m_-3570097487231027143m_7954335389196049544moz-cite-prefix">On 04/25/2017 12:14 AM, Dragomir
Haralambiev wrote:
</div>
<blockquote type="cite">
<div dir="ltr">Hi Bogdan,
<div>
</div>
<div>Thanks for the detailed and comprehensive answer.
</div>
<div>
</div>
<div>Zoiper talking (connection is established) with SIP.JS</div>
<div>Zoiper ---(over UDP)--> Opensips --(over WSS)--->
SIP.JS</div>
<div>
</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>
</div>
<div>I need help to setup Opensips to solve this problem.
</div>
<div>
</div>
<div>Best regards,</div>
<div>Dragomir</div>
</div>
<div class="gmail_extra">
<div class="gmail_quote">2017-04-24 17:47 GMT+03:00
Bogdan-Andrei Iancu <span dir="ltr"><<a class="m_-5872086569655355815m_-3570097487231027143m_7954335389196049544moz-txt-link-abbreviated" href="mailto:bogdan@opensips.org" target="_blank">bogdan@opensips.org</a>></span>:
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000"> Hi,
Same question, same answer - see <a class="m_-5872086569655355815m_-3570097487231027143m_7954335389196049544moz-txt-link-freetext" href="http://lists.opensips.org/" target="_blank">http://lists.opensips.org/</a>pipe<wbr>rmail/users/2017-April/036925.<wbr>html
Regards,
<pre class="m_-5872086569655355815m_-3570097487231027143m_7954335389196049544m_852646183527985223moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="m_-5872086569655355815m_-3570097487231027143m_7954335389196049544m_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 class="m_-5872086569655355815m_-3570097487231027143m_7954335389196049544m_852646183527985223moz-txt-link-freetext" href="http://www.opensips.org/events/Summit-2017Amsterdam.html" target="_blank">http://www.opensips.org/events<wbr>/Summit-2017Amsterdam.html</a>
</pre><span>
<div class="m_-5872086569655355815m_-3570097487231027143m_7954335389196049544m_852646183527985223moz-cite-prefix">On 04/21/2017 07:24 PM, Dragomir
Haralambiev wrote:
</div>
</span><blockquote type="cite">
<div dir="ltr"><span>
<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_-5872086569655355815m_-3570097487231027143m_7954335389196049544m_852646183527985223gmail-Apple-tab-span" style="white-space:pre-wrap"> </span>if
(has_totag()) {</div>
<div><span class="m_-5872086569655355815m_-3570097487231027143m_7954335389196049544m_852646183527985223gmail-Apple-tab-span" style="white-space:pre-wrap"> </span>if
(topology_hiding_match()) {</div>
<div><span class="m_-5872086569655355815m_-3570097487231027143m_7954335389196049544m_852646183527985223gmail-Apple-tab-span" style="white-space:pre-wrap"> </span>t_relay();</div>
<div><span class="m_-5872086569655355815m_-3570097487231027143m_7954335389196049544m_852646183527985223gmail-Apple-tab-span" style="white-space:pre-wrap"> </span>exit;</div>
<div><span class="m_-5872086569655355815m_-3570097487231027143m_7954335389196049544m_852646183527985223gmail-Apple-tab-span" style="white-space:pre-wrap"> </span>}</div>
<div><span class="m_-5872086569655355815m_-3570097487231027143m_7954335389196049544m_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 class="m_-5872086569655355815m_-3570097487231027143m_7954335389196049544m_852646183527985223moz-txt-link-freetext">INFO:core:probe_max_sock_buff</a>: using snd buffer of 416 kb</div>
<div><a class="m_-5872086569655355815m_-3570097487231027143m_7954335389196049544m_852646183527985223moz-txt-link-freetext">INFO:core:init_sock_keepalive</a>: TCP keepalive enabled on
socket 23</div>
<div>ERROR:core:tcp_connect_blockin<wbr>g: timeout 99195 ms elapsed
from 100000 s</div>
<div>ERROR:proto_<a class="m_-5872086569655355815m_-3570097487231027143m_7954335389196049544m_852646183527985223moz-txt-link-freetext">ws:ws_sync_connect</a><wbr>: tcp_blocking_connect failed</div>
<div>ERROR:proto_<a class="m_-5872086569655355815m_-3570097487231027143m_7954335389196049544m_852646183527985223moz-txt-link-freetext">ws:ws_connect</a>: connect failed</div>
<div>ERROR:proto_<a class="m_-5872086569655355815m_-3570097487231027143m_7954335389196049544m_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_-5872086569655355815m_-3570097487231027143m_7954335389196049544m_852646183527985223mimeAttachmentHeader"></fieldset>
<pre>______________________________<wbr>_________________
Users mailing list
<a class="m_-5872086569655355815m_-3570097487231027143m_7954335389196049544m_852646183527985223moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a class="m_-5872086569655355815m_-3570097487231027143m_7954335389196049544m_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>
</div></div></div></blockquote></div>
</div>
</blockquote>
<fieldset class="m_-5872086569655355815m_-3570097487231027143mimeAttachmentHeader"></fieldset>
<pre>______________________________<wbr>_________________
Users mailing list
<a class="m_-5872086569655355815m_-3570097487231027143moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a class="m_-5872086569655355815m_-3570097487231027143moz-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></div></div></blockquote></div>
</div>
</blockquote>
</div></div></div></blockquote></div><br></div>