[libnice] STUN in NiceAgent

Olivier Crête olivier.crete at collabora.com
Sun Jul 20 05:46:27 PDT 2014


Hi,

Afaik, RFC 3489 has all you need for the simple stun use case, the extra
things in the newer RFC aren't needed/used in that case.

Did you try with the "stunbdc" command line tool?

Olivier

On Sun, 2014-07-20 at 20:24 +0800, FerrenLiu wrote:
> I have a STUN/TURN server in litral.com (use restund project). 
> When I ran simple-example 0 $(host -4 -t A litral.com | awk '{ print
> $4 }'), I can't got the server reflective address whit the error "STUN
> demux error: no FINGERPRINT attribute!"
> So I trace the UDP package with Wireshark. It shows that libnice send
> UDP package with protocol "CLASSIC-STUN" and restund response "STUN". 
> 
> I look into the libnice source code and find that 
> ------------------------------------------------------------------------------------------------
> stun_agent_init (&cdisco->stun_agent, STUN_ALL_KNOWN_ATTRIBUTES,
>       STUN_COMPATIBILITY_RFC3489,
>       (agent->compatibility == NICE_COMPATIBILITY_OC2007 ||
>        agent->compatibility == NICE_COMPATIBILITY_OC2007R2) ?
>         STUN_AGENT_USAGE_NO_ALIGNED_ATTRIBUTES : 0);
> ------------------------------------------------------------------------------------------------
> 
> Why libnice hardcopy RFC3489 in here? How to change it to RFC5389? 
> 
> 
> 
> 
> On 07/03/2014 11:17 AM, 刘先国 wrote:
> 
> > Who can show me a Psedo TCP example? I don't know how to use it.
> > 
> > 
> > 
> > 
> > _______________________________________________
> > nice mailing list
> > nice at lists.freedesktop.org
> > http://lists.freedesktop.org/mailman/listinfo/nice
> 
> _______________________________________________
> nice mailing list
> nice at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/nice

-- 
Olivier Crête
olivier.crete at collabora.com



More information about the nice mailing list