[Nice] Fwd: compatibility with rfc5766-turn-server

Youness Alaoui youness.alaoui at collabora.co.uk
Fri Aug 23 07:05:04 PDT 2013


I just tried rfc5766-turn-server and it seems to work fine with both the
simple-example and the stun/tools/stunbdc, I'm not sure why it wouldn't work for
you.

The wireshark capture you sent shows that the server receives and responds to
the STUN request properly. The "STUN demux error: no cookie!" however doesn't
make any sense because it means it can't find the rfc5389 cookie, which means
it's trying to parse it as a rfc5389 message, but that's not logical since it's
using rfc3489 for the stun requests.

Let me know if you were able to find anything else about this problem.

Thanks,
Youness.

On 07/31/2013 06:22 AM, Chunfeng Zhang wrote:
> Hi Youness:
> 
> Thanks for your help.
> 
> The "rfc5766-turn-server" not only supports turn but also supports stun
> protocol(RFC 3489, RFC 5389, RFC 5769, RFC 5780).
> 
> I digged into this problem today, and here is the log from simple-example in
> libnice.
> 
> 
> ./simple-example 0 172.21.15.98
> Using stun server '[172.21.15.98]:3478'
> SIGNAL: state changed 1 1 gathering[1]
> waiting for candidate-gathering-done signal...
> STUN demux error: no cookie!
> STUN transaction retransmitted (timeout 398ms).
> STUN demux error: no cookie!
> STUN transaction retransmitted (timeout 797ms).
> STUN demux error: no cookie!
> STUN transaction retransmitted (timeout 1591ms).
> STUN demux error: no cookie!
> SIGNAL candidate gathering done
> Copy this line to remote client:
> 
> I89H y6VOBDzHRITkZ4rhYRsMSx 1,2013266431,172.21.15.118,57086,host
> 
> 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.
> 
> I will do more to find out the problem.
> 
> 
> 
> 
> 2013/7/31 Youness Alaoui <youness.alaoui at collabora.co.uk
> <mailto:youness.alaoui at collabora.co.uk>>
> 
>     Hi,
> 
>     I do not believe I ever tried rfc5766-turn-server. I was testing with
>     turnserver.org <http://turnserver.org> but libnice should work if the server
>     follows the RFC.
>     I believe Madaro did a lot more testing with TURN than I did and maybe he can
>     provide some help.
>     Without the code you used to setup libnice or logs, there's not much I can help
>     you with.
>     Unfortunately, I do not have time at the moment for libnice maintenance so I
>     can't test it for now.
>     If you figure out what the issue is and it's a bug in libnice, a patch would be
>     welcome.
> 
>     Thanks,
>     Youness.
> 
>     On 07/30/2013 07:35 AM, Chunfeng Zhang wrote:
>     >
>     >
>     > ---------- Forwarded message ----------
>     > From: *Chunfeng Zhang* <crazypandar at gmail.com
>     <mailto:crazypandar at gmail.com> <mailto:crazypandar at gmail.com
>     <mailto:crazypandar at gmail.com>>>
>     > Date: 2013/7/30
>     > Subject: compatibility with rfc5766-turn-server
>     > To: nice-owner at lists.freedesktop.org
>     <mailto:nice-owner at lists.freedesktop.org>
>     <mailto:nice-owner at lists.freedesktop.org
>     <mailto:nice-owner at lists.freedesktop.org>>
>     >
>     >
>     > We use libnice to test with stund and rfc5766-turn-server.
>     >
>     > It worked with stund, but failed with rfc5766-turn-server.
>     >
>     > When we use rfc5766-turn-server as stun server, libnice can not gather the
>     > public candidates.
>     >
>     > And we tested another ICE client project: pjnath with rfc5766-turn-server,
>     it works.
>     >
>     > here is the project address of rfc5766-turn-server.
>     > https://code.google.com/p/rfc5766-turn-server/
>     >
>     > --
>     > Best Regards
>     > Lincoln Zhang
>     >
>     >
>     >
>     > --
>     > Best Regards
>     > Lincoln Zhang
>     >
>     >
>     > _______________________________________________
>     > nice mailing list
>     > nice at lists.freedesktop.org <mailto:nice at lists.freedesktop.org>
>     > http://lists.freedesktop.org/mailman/listinfo/nice
>     >
> 
> 
> 
>     _______________________________________________
>     nice mailing list
>     nice at lists.freedesktop.org <mailto:nice at lists.freedesktop.org>
>     http://lists.freedesktop.org/mailman/listinfo/nice
> 
> 
> 
> 
> -- 
> Best Regards
> Lincoln Zhang


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 263 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freedesktop.org/archives/nice/attachments/20130823/e2667e28/attachment.pgp>


More information about the nice mailing list