[Nice] STUN demux error: no cookie!
youness.alaoui at collabora.co.uk
Mon Jan 24 09:32:57 PST 2011
You must call nice_agent_set_remote_candidates after you receive the
Calling set_remote_candidates is what initiates the connection, if you call it
before gathering, it won't be able to connect since it doesn't have its own
candidates, if you try during the gathering process, the set_remote_candidates
will return an error, and log that you can't set remote candidates while gathering.
When calling set_remote_candidates, the remote candidates list must be a GList*
of NiceCandidate structure describing each remote candiate. You must exchange
those candidates through some other means (sip/xmpp server or whatever).
See docs for set_remote_candidates :
And there's an example on the order of calling functions here :
Let me know if you need anything else.
On 01/23/2011 06:01 AM, Dawid Ciepliński wrote:
> Dnia Sun, 23 Jan 2011 00:28:31 -0500
> Youness Alaoui<youness.alaoui at collabora.co.uk> napisał(a):
>> browsed the code, the issue I can see is that you're calling
>> nice_agent_attach_recv in the candidate_gathering_done, but you actually need to
>> attach the recv callback for the gathering to work.
> thank you for your response, it seems that it fixed the problem (,,no
> cookie!'' is still there, nevertheless the processing goes on).
> Now, one more question:
> * Am I supposed to call nice_agent_set_remote_candidates after
> nice_agent_get_local_candidates? (If so, what should rcands be?)
> Nice mailing list
> Nice at lists.freedesktop.org
More information about the Nice