<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Garamond;
panose-1:2 2 4 4 3 3 1 1 8 3;}
@font-face
{font-family:"Times New Roman \(Body CS\)";
panose-1:2 11 6 4 2 2 2 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
{mso-style-priority:34;
margin-top:0in;
margin-right:0in;
margin-bottom:0in;
margin-left:.5in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Calibri",sans-serif;}
span.EmailStyle19
{mso-style-type:personal-reply;
font-family:"Garamond",serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
/* List Definitions */
@list l0
{mso-list-id:1699970902;
mso-list-type:hybrid;
mso-list-template-ids:2041635396 67698703 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}
@list l0:level1
{mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;}
@list l0:level2
{mso-level-number-format:alpha-lower;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;}
@list l0:level3
{mso-level-number-format:roman-lower;
mso-level-tab-stop:none;
mso-level-number-position:right;
text-indent:-9.0pt;}
@list l0:level4
{mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;}
@list l0:level5
{mso-level-number-format:alpha-lower;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;}
@list l0:level6
{mso-level-number-format:roman-lower;
mso-level-tab-stop:none;
mso-level-number-position:right;
text-indent:-9.0pt;}
@list l0:level7
{mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;}
@list l0:level8
{mso-level-number-format:alpha-lower;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;}
@list l0:level9
{mso-level-number-format:roman-lower;
mso-level-tab-stop:none;
mso-level-number-position:right;
text-indent:-9.0pt;}
ol
{margin-bottom:0in;}
ul
{margin-bottom:0in;}
--></style>
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-family:"Garamond",serif">I found the issue. It was fixed in this commit in June 2017:<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:.5in"><span style="font-family:"Garamond",serif"><a href="https://gitlab.freedesktop.org/libnice/libnice/-/commit/58d061df8f5425dc1add9c6030a2f891ebda4616">https://gitlab.freedesktop.org/libnice/libnice/-/commit/58d061df8f5425dc1add9c6030a2f891ebda4616</a><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Garamond",serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Garamond",serif">It appears that Ubuntu 18.04 is still using Libnice 0.1.14, which was cut about two months before this fix got into master.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Garamond",serif">In my previous attempts noted below I had updated one of my two libnice clients to 0.1.16, but not both. As luck would have it, I needed the fix on the side that I had not upgraded.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Garamond",serif">After a bunch of reading the code and the logs I tracked down the bug and then figured out that Fabrice had fixed it long ago. I’m happy to see it was fixed.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Garamond",serif">Upgrading the Libnice on both sides of my setup seems to result in successful negotiation.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Garamond",serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Garamond",serif">A couple follow up questions<o:p></o:p></span></p>
<ol style="margin-top:0in" start="1" type="1">
<li class="MsoListParagraph" style="margin-left:0in;mso-list:l0 level1 lfo1"><span style="font-family:"Garamond",serif">If libnice.so.10.7.0 is already on a machine and I install libnice.so.10.9.0 to the common /usr/lib directory and relink libnice.so.10 to
point to the libnice.so.10.9.0, will that do some horrible damage to the installation of the libnice10 deb package? I’m inclined to go ahead and upgrade the libnice on customer machines if the old one is present, but it makes me a bit uncomfortable.<o:p></o:p></span></li><li class="MsoListParagraph" style="margin-left:0in;mso-list:l0 level1 lfo1"><span style="font-family:"Garamond",serif">Do you guys know if ubuntu 20.04 (releasing soon) is going to get a more recent libnice than 0.1.14? Seems like the world would benefit from
the bugfixes.<o:p></o:p></span></li></ol>
<p class="MsoNormal"><span style="font-family:"Garamond",serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Garamond",serif">Stuart<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Garamond",serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Garamond",serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Garamond",serif"><o:p> </o:p></span></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="color:black">From: </span></b><span style="color:black">nice <nice-bounces@lists.freedesktop.org> on behalf of Stuart Marshall <stuart@seelye.net><br>
<b>Date: </b>Thursday, April 2, 2020 at 7:05 AM<br>
<b>To: </b>"nice@lists.freedesktop.org" <nice@lists.freedesktop.org><br>
<b>Subject: </b>[libnice] libnice not negotiating well with itself<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
</div>
<p class="MsoNormal"><span style="font-family:"Garamond",serif">I’ve got two libnice instances that aren’t successfully negotiating with each other. I’d appreciate any suggestions on how to fix this. Logs are attached.</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-family:"Garamond",serif"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-family:"Garamond",serif">Process 1 is a native Linux amd64 exe using gstreamer. It’s trying to establish a webrtc connection to a server from behind a NAT firewall. This exe is using GStreamer 1.16. It’s running on Ubuntu
18.04. I’ve tried using the default 1.14 libnice as well as a privately compiled libnice 1.16. The security group is configured to allow all UDP to come in.</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-family:"Garamond",serif"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-family:"Garamond",serif">Process 2 is a Java app running on Ubuntu 18.04 on EC2. It’s also using GStreamer 1.16. It is using the default libnice 1.14 on the system.</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-family:"Garamond",serif"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-family:"Garamond",serif">Both processes leverage a stun server that I’m running. I’ve tried it with the public Google stun server with the same results.</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-family:"Garamond",serif"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-family:"Garamond",serif">I can see the two libnices exchange stun messages on viable addresses and ports. One appears to connect component 1 and the other connects component 2. Neither connects both. I’m quite puzzled
about why this is failing.</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-family:"Garamond",serif"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-family:"Garamond",serif">I have not done a packet capture yet, nor have I walked through the libnice code. I could do both, but would love to get a solution that would save me that effort. Hope somebody on the list can
help.</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-family:"Garamond",serif"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-family:"Garamond",serif">Thanks,</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-family:"Garamond",serif"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-family:"Garamond",serif">Stuart</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-family:"Garamond",serif"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-family:"Garamond",serif"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-family:"Garamond",serif"> </span><o:p></o:p></p>
</div>
</body>
</html>