<div dir="ltr"><div>Hi Youness:</div><div><br></div>Thanks for your help.<div><br></div><div>The "<span style="font-family:arial,sans-serif;font-size:14px">rfc5766-turn-server</span>" not only supports turn but also supports stun protocol(<span style="color:rgb(0,0,0);font-family:arial,sans-serif;font-size:13px">RFC 3489, </span><span style="color:rgb(0,0,0);font-family:arial,sans-serif;font-size:13px">RFC 5389, </span><span style="color:rgb(0,0,0);font-family:arial,sans-serif;font-size:13px">RFC 5769, </span><span style="color:rgb(0,0,0);font-family:arial,sans-serif;font-size:13px">RFC 5780</span>).</div>
<div><br></div><div>I digged into this problem today, and here is the log from simple-example in libnice.</div><div><br></div><div><br></div><div><span style="color:rgb(0,0,0);font-family:Cantarell;font-size:medium;white-space:pre-wrap"> ./simple-example 0 172.21.15.98</span><br style="color:rgb(0,0,0);font-family:Cantarell;font-size:medium;white-space:pre-wrap">
<span style="color:rgb(0,0,0);font-family:Cantarell;font-size:medium;white-space:pre-wrap">Using stun server '[172.21.15.98]:3478'</span><br style="color:rgb(0,0,0);font-family:Cantarell;font-size:medium;white-space:pre-wrap">
<span style="color:rgb(0,0,0);font-family:Cantarell;font-size:medium;white-space:pre-wrap">SIGNAL: state changed 1 1 gathering[1]</span><br style="color:rgb(0,0,0);font-family:Cantarell;font-size:medium;white-space:pre-wrap">
<span style="color:rgb(0,0,0);font-family:Cantarell;font-size:medium;white-space:pre-wrap">waiting for candidate-gathering-done signal...</span><br style="color:rgb(0,0,0);font-family:Cantarell;font-size:medium;white-space:pre-wrap">
<span style="color:rgb(0,0,0);font-family:Cantarell;font-size:medium;white-space:pre-wrap">STUN demux error: no cookie!</span><br style="color:rgb(0,0,0);font-family:Cantarell;font-size:medium;white-space:pre-wrap"><span style="color:rgb(0,0,0);font-family:Cantarell;font-size:medium;white-space:pre-wrap">STUN transaction retransmitted (timeout 398ms).</span><br style="color:rgb(0,0,0);font-family:Cantarell;font-size:medium;white-space:pre-wrap">
<span style="color:rgb(0,0,0);font-family:Cantarell;font-size:medium;white-space:pre-wrap">STUN demux error: no cookie!</span><br style="color:rgb(0,0,0);font-family:Cantarell;font-size:medium;white-space:pre-wrap"><span style="color:rgb(0,0,0);font-family:Cantarell;font-size:medium;white-space:pre-wrap">STUN transaction retransmitted (timeout 797ms).</span><br style="color:rgb(0,0,0);font-family:Cantarell;font-size:medium;white-space:pre-wrap">
<span style="color:rgb(0,0,0);font-family:Cantarell;font-size:medium;white-space:pre-wrap">STUN demux error: no cookie!</span><br style="color:rgb(0,0,0);font-family:Cantarell;font-size:medium;white-space:pre-wrap"><span style="color:rgb(0,0,0);font-family:Cantarell;font-size:medium;white-space:pre-wrap">STUN transaction retransmitted (timeout 1591ms).</span><br style="color:rgb(0,0,0);font-family:Cantarell;font-size:medium;white-space:pre-wrap">
<span style="color:rgb(0,0,0);font-family:Cantarell;font-size:medium;white-space:pre-wrap">STUN demux error: no cookie!</span><br style="color:rgb(0,0,0);font-family:Cantarell;font-size:medium;white-space:pre-wrap"><span style="color:rgb(0,0,0);font-family:Cantarell;font-size:medium;white-space:pre-wrap">SIGNAL candidate gathering done</span><br style="color:rgb(0,0,0);font-family:Cantarell;font-size:medium;white-space:pre-wrap">
<span style="color:rgb(0,0,0);font-family:Cantarell;font-size:medium;white-space:pre-wrap">Copy this line to remote client:</span><br style="color:rgb(0,0,0);font-family:Cantarell;font-size:medium;white-space:pre-wrap"><br style="color:rgb(0,0,0);font-family:Cantarell;font-size:medium;white-space:pre-wrap">
<span style="color:rgb(0,0,0);font-family:Cantarell;font-size:medium;white-space:pre-wrap">  I89H y6VOBDzHRITkZ4rhYRsMSx 1,2013266431,172.21.15.118,57086,host</span><br></div><div><br></div><div>And I captured all the packets , see the attachment. Looking into the packets, server replayed all stun requests, but libnice said timeouts for 3 times.</div>
<div><br></div><div>I will do more to find out the problem.</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/7/31 Youness Alaoui <span dir="ltr"><<a href="mailto:youness.alaoui@collabora.co.uk" target="_blank">youness.alaoui@collabora.co.uk</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I do not believe I ever tried rfc5766-turn-server. I was testing with<br>
<a href="http://turnserver.org" target="_blank">turnserver.org</a> but libnice should work if the server follows the RFC.<br>
I believe Madaro did a lot more testing with TURN than I did and maybe he can<br>
provide some help.<br>
Without the code you used to setup libnice or logs, there's not much I can help<br>
you with.<br>
Unfortunately, I do not have time at the moment for libnice maintenance so I<br>
can't test it for now.<br>
If you figure out what the issue is and it's a bug in libnice, a patch would be<br>
welcome.<br>
<br>
Thanks,<br>
Youness.<br>
<div class="im"><br>
On 07/30/2013 07:35 AM, Chunfeng Zhang wrote:<br>
><br>
><br>
> ---------- Forwarded message ----------<br>
</div><div class="im">> From: *Chunfeng Zhang* <<a href="mailto:crazypandar@gmail.com">crazypandar@gmail.com</a> <mailto:<a href="mailto:crazypandar@gmail.com">crazypandar@gmail.com</a>>><br>
> Date: 2013/7/30<br>
> Subject: compatibility with rfc5766-turn-server<br>
</div><div class="im">> To: <a href="mailto:nice-owner@lists.freedesktop.org">nice-owner@lists.freedesktop.org</a> <mailto:<a href="mailto:nice-owner@lists.freedesktop.org">nice-owner@lists.freedesktop.org</a>><br>

><br>
><br>
> We use libnice to test with stund and rfc5766-turn-server.<br>
><br>
> It worked with stund, but failed with rfc5766-turn-server.<br>
><br>
> When we use rfc5766-turn-server as stun server, libnice can not gather the<br>
> public candidates.<br>
><br>
> And we tested another ICE client project: pjnath with rfc5766-turn-server, it works.<br>
><br>
> here is the project address of rfc5766-turn-server.<br>
> <a href="https://code.google.com/p/rfc5766-turn-server/" target="_blank">https://code.google.com/p/rfc5766-turn-server/</a><br>
><br>
> --<br>
> Best Regards<br>
> Lincoln Zhang<br>
><br>
><br>
><br>
> --<br>
> Best Regards<br>
> Lincoln Zhang<br>
><br>
><br>
</div>> _______________________________________________<br>
> nice mailing list<br>
> <a href="mailto:nice@lists.freedesktop.org">nice@lists.freedesktop.org</a><br>
> <a href="http://lists.freedesktop.org/mailman/listinfo/nice" target="_blank">http://lists.freedesktop.org/mailman/listinfo/nice</a><br>
><br>
<br>
<br>
<br>_______________________________________________<br>
nice mailing list<br>
<a href="mailto:nice@lists.freedesktop.org">nice@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/nice" target="_blank">http://lists.freedesktop.org/mailman/listinfo/nice</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Best Regards<div>Lincoln Zhang</div>
</div>