[libnice] Fwd: Re: STUN in NiceAgent

Olivier Crête olivier.crete at collabora.com
Sun Jul 20 07:00:34 PDT 2014


Hi,

RFC5389 should be a superset of the older one, so I wouldn't be
surprised if it didn't work. You can use the stund included in libnice,
or rfc5466-turn-server (which also does STUN). 

On Sun, 2014-07-20 at 21:13 +0800, FerrenLiu wrote:
> Hi,
> 
>    Can you commend me a STUN/TURN server?  It looks like that 'restund'
> can't suitable libnice, because it just support STUN RF5389.
> 
> 
> Ferren
> 
> On 07/20/2014 08:46 PM, Olivier Crête wrote:
> > 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
> 
> 
> 
> 
> _______________________________________________
> 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