[Nice] can't get srflx addresses from STUN

Bryce Allen ballen at ci.uchicago.edu
Wed Jan 30 09:19:00 PST 2013


Thanks that did the trick, got everything working now! Also noticed
that I was setting G_MESSAGE_DEBUG singular instead of MESSAGES :P,
have lots of debugging info now.

-Bryce

On Mon, 28 Jan 2013 21:00:36 -0500
Youness Alaoui <youness.alaoui at collabora.co.uk> wrote:
> Hi,
> 
> Thanks for attaching your source, after a quick look, I found the
> issue (I expected it). You are missing the call to
> nice_agent_attach_recv :
> http://nice.freedesktop.org/libnice/NiceAgent.html#nice-agent-attach-recv
> 
> If you don't call the API, then the NiceAgent won't listen to the
> socket (since it doesn't know yet which mainloop/thread to attach its
> callback to). Once you do that, it will receive the STUN response and
> should handle it. As for the debug messages, I think if you're using
> a recent enough version of glib, you would also need to 'export
> G_MESSAGES_DEBUG=all' otherwise the messages from g_debug are not
> printed.
> 
> I hope this helps,
> Youness.
> 
> 
> On 01/28/2013 06:34 PM, Bryce Allen wrote:
> > I'm having trouble getting libnice to recognize STUN binding
> > responses and add a server reflexive candidate. I confirmed with
> > wireshark that the response is received and looks valid. Attached
> > is my test program, any help would be greatly appreciated. I'm
> > using libnice 0.1.2, packaged for debian sid (which looks like it's
> > unpatched from the original).
> > 
> > NICE_DEBUG=all ./nicetest $(host stun.stunprotocol.org | awk
> > '{ print $4 }')
> > Using stun server '107.23.150.92:3478'
> > waiting for signal
> > STUN transaction retransmitted (timeout 398ms).
> > STUN transaction retransmitted (timeout 797ms).
> > STUN transaction retransmitted (timeout 1593ms).
> > got gathering done signal, quitting mainloop
> > got signal
> > foundation: 1, addr: 192.168.1.4, base: 192.168.1.4, type: host
> > thread_mainloop exit
> > 
> > I see a lot more debug messages in the library source, I don't know
> > why I'm only seeing the stun retransmit with NICE_DEBUG=all.
> > 
> > Thanks,
> > Bryce
> > 
> > 
> > 
> > _______________________________________________
> > nice mailing list
> > nice at lists.freedesktop.org
> > http://lists.freedesktop.org/mailman/listinfo/nice
> > 
> 
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/nice/attachments/20130130/34634f94/attachment.pgp>


More information about the nice mailing list