<div dir="ltr">Well I was using mod_verto and I have local on laptop, lan, wifi, virbr0 (virtualbox), docker0 with local IP and had no issues so far</div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Sep 27, 2016 at 3:57 PM, Александр Дружилов <span dir="ltr"><<a href="mailto:alexdruzhilov@gmail.com" target="_blank">alexdruzhilov@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><span style="font-size:12.8px">"Are you using mod_sofia with sip or mod_verto ?"<br>We are using mod_sofia.<br></span><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">"can you try with varto-communicator and mod_verto wss port ?"</div><div style="font-size:12.8px">Can you please explain how it could be helpful in case of this problem?</div><div style="font-size:12.8px"><br></div><span style="font-size:12.8px">I have already reported issue in Jira (<a href="https://freeswitch.org/jira/browse/FS-9570" target="_blank">https://freeswitch.org/jira/<wbr>browse/FS-9570</a>).</span></div><div class="gmail_extra"><br><div class="gmail_quote">2016-09-27 16:35 GMT+03:00 Ken Rice <span dir="ltr"><<a href="mailto:krice@freeswitch.org" target="_blank">krice@freeswitch.org</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="EN-US" link="blue" vlink="purple"><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">Bugs get reported to Jira @ <a href="https://freeswitch.org/jira" target="_blank">https://freeswitch.org/jira</a> so they don’t fall thru the cracks<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"><u></u> <u></u></span></p><p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> <a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists<wbr>.freeswitch.org</a> [mailto:<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounc<wbr>es@lists.freeswitch.org</a>] <b>On Behalf Of </b>????????? ????????<br><b>Sent:</b> Tuesday, September 27, 2016 4:10 AM<br><b>To:</b> <a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswi<wbr>tch.org</a><br><b>Subject:</b> [Freeswitch-users] Fwd: Freeswitch uses wrong ICE candidate to establish connection<u></u><u></u></span></p><div><div><p class="MsoNormal"><u></u> <u></u></p><div><p class="MsoNormal"><u></u> <u></u></p><div><p class="MsoNormal" style="margin-bottom:12.0pt">---------- Forwarded message ----------<br>From: <b>Александр Дружилов</b> <<a href="mailto:alexdruzhilov@gmail.com" target="_blank">alexdruzhilov@gmail.com</a>><br>Date: 2016-09-26 14:31 GMT+03:00<br>Subject: Freeswitch uses wrong ICE candidate to establish connection<br>To: <a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswi<wbr>tch.org</a><br><br><u></u><u></u></p><div><div><p class="MsoNormal"><b>The short description of problem</b><u></u><u></u></p></div><div><p class="MsoNormal">We are using Freeswitch for conference calls through webRTC. Chrome collects ICE candidates (from two net interfaces: ethernet and wifi), sends them to Freeswitch and Freeswitch accepts one of this candidates. After that Freeswitch tries to make DTLS handshake, but Chrome ignores it and sends STUN pings over and over again. But if I disable one of this network interfaces, then everything works fine. From my point of view the problem is that Freeswitch uses wrong ICE candidate (it takes this candidate from STUN pings, but there is no exactly such candidate in SDP). I also admit that may be the root of the problem is inside Chrome (because Firefox works properly in this case), but I interested in possible explanations an may be solutions from the Freeswitch side. <u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><p class="MsoNormal"><b>Versions</b><br>Freeswitch 1.6.9, 1.6.10<br>Chrome 52, 53, 54<u></u><u></u></p><div><p class="MsoNormal">Server OS: CentOS 7.2.1511<br>Client OS: Ubuntu 16.04<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal"><b>IP addresses</b><u></u><u></u></p></div><div><p class="MsoNormal">1) 172.15.1.1 - local VM (VirtualBox)<br>2) 192.168.22.57 - local ethernet interface<br>3) 192.168.41.185 - local wi-fi interface<u></u><u></u></p></div><div><p class="MsoNormal" style="margin-bottom:12.0pt">4) 52.202.171.116 - Freeswitch IP<u></u><u></u></p></div><div><p class="MsoNormal"><b>Succsess case</b><u></u><u></u></p></div><div><p class="MsoNormal">Chrome sends offer with this candidates (Ethernet and WI-FI addresses)<u></u><u></u></p></div><div><div><p class="MsoNormal">a=candidate:988003974 1 udp 2122260223 192.168.22.57 56687 typ host generation 0 network-id 1<u></u><u></u></p></div><div><p class="MsoNormal">a=candidate:3404510875 1 udp 2122194687 192.168.41.185 57467 typ host generation 0 network-id 4 network-cost 10<u></u><u></u></p></div><div><p class="MsoNormal">a=candidate:988003974 2 udp 2122260222 192.168.22.57 60099 typ host generation 0 network-id 1<u></u><u></u></p></div><div><p class="MsoNormal">a=candidate:3404510875 2 udp 2122194686 192.168.41.185 54887 typ host generation 0 network-id 4 network-cost 10<u></u><u></u></p></div><div><p class="MsoNormal">a=candidate:3148593202 1 udp 1686052607 80.254.60.17 56687 typ srflx raddr 192.168.22.57 rport 56687 generation 0 network-id 1<u></u><u></u></p></div><div><p class="MsoNormal">a=candidate:3148593202 2 udp 1686052606 80.254.60.17 60099 typ srflx raddr 192.168.22.57 rport 60099 generation 0 network-id 1<u></u><u></u></p></div></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">Freeswitch choose srflx candidate<br>2016-09-26 10:54:28.337897 [DEBUG] switch_core_media.c:6434 AUDIO RTP [sofia/external576460752303423<wbr>473@wrike] 172.16.106.100 port 17052 -> 80.254.60.17 port 56687 codec: 111 ms: 20<u></u><u></u></p></div><div><p class="MsoNormal">Receives STUN pings from this interface and everything goes as expected - media stream established.<br><br><b>Failure case (add one interface (VirtualBox) or disable one of existing interfaces)</b><u></u><u></u></p></div><div><p class="MsoNormal">Chrome sends offer with one additional interface (VirtualBox).<u></u><u></u></p><div><p class="MsoNormal">a=candidate:1861086701 1 udp 2122260223 172.15.1.1 43367 typ host generation 0 network-id 3<u></u><u></u></p></div><div><p class="MsoNormal">a=candidate:988003974 1 udp 2122194687 192.168.22.57 54230 typ host generation 0 network-id 1<u></u><u></u></p></div><div><p class="MsoNormal">a=candidate:3404510875 1 udp 2122129151 192.168.41.185 42752 typ host generation 0 network-id 4 network-cost 10<u></u><u></u></p></div><div><p class="MsoNormal">a=candidate:1861086701 2 udp 2122260222 172.15.1.1 55301 typ host generation 0 network-id 3<u></u><u></u></p></div><div><p class="MsoNormal">a=candidate:988003974 2 udp 2122194686 192.168.22.57 44112 typ host generation 0 network-id 1<u></u><u></u></p></div><div><p class="MsoNormal">a=candidate:3404510875 2 udp 2122129150 192.168.41.185 46978 typ host generation 0 network-id 4 network-cost 10<u></u><u></u></p></div><div><p class="MsoNormal">a=candidate:3148593202 1 udp 1685987071 80.254.60.17 54230 typ srflx raddr 192.168.22.57 rport 54230 generation 0 network-id 1<u></u><u></u></p></div><div><p class="MsoNormal">a=candidate:3148593202 2 udp 1685987070 80.254.60.17 44112 typ srflx raddr 192.168.22.57 rport 44112 generation 0 network-id 1<u></u><u></u></p></div></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">Freeswitch choose VirtualBox interface as main candidate<u></u><u></u></p></div><div><div><p class="MsoNormal">2016-09-26 11:03:40.513295 [DEBUG] switch_core_media.c:6434 AUDIO RTP [sofia/external/57646075230342<wbr>3471@wrike] 172.16.106.100 port 17000 -> 172.15.1.1 port 42374 codec: 111 ms: 20<u></u><u></u></p></div></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">After a few STUN pings Freeswitch changes his main candidate to the public address of my Wi-Fi interface (but it was not included in SDP by chrome and I don't know exactly why).<u></u><u></u></p></div><div><p class="MsoNormal">2016-09-26 11:03:40.912987 [NOTICE] switch_rtp.c:1258 Auto Changing video stun/rtp/dtls port from <a href="http://172.15.1.1:43367" target="_blank">172.15.1.1:43367</a> to <a href="http://80.254.60.17:42752" target="_blank">80.254.60.17:42752</a><br><br>Freeswitch tries to make DTLS handshake with this candidate, but fails because Chrome ingores this "Client Hello" request.<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">All necessary data attached for success and failure cases (freeswitch logs, wireshark dump made on client, SDP).<u></u><u></u></p></div></div></div><p class="MsoNormal"><u></u> <u></u></p></div></div></div></div></div><br>______________________________<wbr>______________________________<wbr>_____________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions<wbr>.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.o<wbr>rg</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswi<wbr>tch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/ma<wbr>ilman/listinfo/freeswitch-user<wbr>s</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.frees<wbr>witch.org/mailman/options/<wbr>freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br></div>
<br>______________________________<wbr>______________________________<wbr>_____________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.<wbr>freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.<wbr>org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.<wbr>freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/<wbr>mailman/listinfo/freeswitch-<wbr>users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.<wbr>freeswitch.org/mailman/<wbr>options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr">Regards,<div>Mirko</div><div><p style="font-size:14px;line-height:24.5px;margin:0.5em 0px;padding:0px;color:rgb(0,0,0);font-family:"Open Sans",sans-serif;text-align:center">¯\_(ツ)_/¯</p></div><div><br></div></div></div></div></div></div></div>
</div>