<div>Oh, I forgot to install the gupnp library then. That explains why I was getting a "compiled without upnp support" message :)</div><div><br></div><div>So, in ubuntu I found the following packages:</div><div>libgupnp-1.0-3</div>
<div>libgupnp-1.0-dev</div><div>libgupnp-igd-1.0-3</div><div>libgupnp-igd-1.0-dev</div><div>libgupnp-ui-1.0-0</div><div>libgupnp-av-1.0-2</div><div>libgupnp-av-1.0-dev</div><div>libgupnp-dlna-1.0-0</div><div>libgupnp-dlna-1.0-dev</div>
<div>libgupnp-ui-1.0-dev </div><div><br></div><div>Which one should I install? Maybe all of them, just in case? :)</div><br clear="all">Eduardo Bezerra<br><br><div class="gmail_quote">On Fri, Jan 13, 2012 at 10:15 PM, Youness Alaoui <span dir="ltr"><<a href="mailto:youness.alaoui@collabora.co.uk">youness.alaoui@collabora.co.uk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">oups, that's my fault, I'm checking for available upnp without checking if GUPNP<br>
was available..<br>
This also means that you were compiling libnice without upnp support (it didn't<br>
find GUPNP libs).<br>
git pull and it should work now, but I suggest you make sure you have the<br>
necessary dependencies for upnp to be enabled.<br>
<div class="im"><br>
On 01/13/2012 03:47 PM, Eduardo Bezerra wrote:<br>
> Great! Now it worked. I tried to compile then from the newest revision and got<br>
> the following error:<br>
><br>
> agent.c:1877: error: 'NiceAgent' has no member named 'upnp_mapping'<br>
><br>
><br>
> Eduardo Bezerra<br>
><br>
> <a href="http://www.inf.ufrgs.br/~cebbezerra" target="_blank">http://www.inf.ufrgs.br/~cebbezerra</a><br>
> PhD Student at the Faculty of Informatics - USI<br>
> Doutorando em Ciência da Computação - UFRGS<br>
> Mestre em Ciência da Computação - UFRGS<br>
> Bacharel em Ciência da Computação - UFBA<br>
><br>
><br>
> On Fri, Jan 13, 2012 at 7:44 PM, Youness Alaoui <<a href="mailto:youness.alaoui@collabora.co.uk">youness.alaoui@collabora.co.uk</a><br>
</div><div class="im">> <mailto:<a href="mailto:youness.alaoui@collabora.co.uk">youness.alaoui@collabora.co.uk</a>>> wrote:<br>
><br>
> The URL <a href="http://cgit.collabora.com/git/user/kakaroto/libnice.git" target="_blank">http://cgit.collabora.com/git/user/kakaroto/libnice.git</a> is for cgit, it<br>
> has the 'clone URL' listed at the bottom, which is :<br>
> git://<a href="http://git.collabora.co.uk/git/user/kakaroto/libnice.git" target="_blank">git.collabora.co.uk/git/user/kakaroto/libnice.git</a><br>
</div>> <<a href="http://git.collabora.co.uk/git/user/kakaroto/libnice.git" target="_blank">http://git.collabora.co.uk/git/user/kakaroto/libnice.git</a>><br>
<div class="im">><br>
> That should work.<br>
><br>
> On 01/13/2012 03:58 AM, Eduardo Bezerra wrote:<br>
> > Glad that I could contribute a bit :)<br>
> ><br>
> > For some reason, I'm not being able to clone<br>
> > from <a href="http://cgit.collabora.com/git/user/kakaroto/libnice.git" target="_blank">http://cgit.collabora.com/git/user/kakaroto/libnice.git</a>, but only<br>
> > from git://<a href="http://git.collabora.co.uk/git/libnice.git" target="_blank">git.collabora.co.uk/git/libnice.git</a><br>
> <<a href="http://git.collabora.co.uk/git/libnice.git" target="_blank">http://git.collabora.co.uk/git/libnice.git</a>><br>
> > <<a href="http://git.collabora.co.uk/git/libnice.git" target="_blank">http://git.collabora.co.uk/git/libnice.git</a>>, where the last commit was in<br>
> > September...<br>
> ><br>
> > On Fri, Jan 13, 2012 at 12:29 AM, Youness Alaoui<br>
> <<a href="mailto:youness.alaoui@collabora.co.uk">youness.alaoui@collabora.co.uk</a> <mailto:<a href="mailto:youness.alaoui@collabora.co.uk">youness.alaoui@collabora.co.uk</a>><br>
</div>> > <mailto:<a href="mailto:youness.alaoui@collabora.co.uk">youness.alaoui@collabora.co.uk</a><br>
<div><div class="h5">> <mailto:<a href="mailto:youness.alaoui@collabora.co.uk">youness.alaoui@collabora.co.uk</a>>>> wrote:<br>
> ><br>
> > Ok it's fixed. thanks for reporting/noticing it!<br>
> > The patches are in my git repository available here :<br>
> > <a href="http://cgit.collabora.com/git/user/kakaroto/libnice.git/" target="_blank">http://cgit.collabora.com/git/user/kakaroto/libnice.git/</a><br>
> ><br>
> > And here is the diff of the two patches that I needed to fix the bug :<br>
> ><br>
> <a href="http://cgit.collabora.com/git/user/kakaroto/libnice.git/commit/?id=32b1b90f7aef5595829c6443f0a63ab0e492c9a3" target="_blank">http://cgit.collabora.com/git/user/kakaroto/libnice.git/commit/?id=32b1b90f7aef5595829c6443f0a63ab0e492c9a3</a><br>
> ><br>
> <a href="http://cgit.collabora.com/git/user/kakaroto/libnice.git/commit/?id=db2e674f516e8695adb3d302610bf6a15e5c0d70" target="_blank">http://cgit.collabora.com/git/user/kakaroto/libnice.git/commit/?id=db2e674f516e8695adb3d302610bf6a15e5c0d70</a><br>
> ><br>
> > Youness.<br>
> ><br>
> > On 01/12/2012 04:14 PM, Youness Alaoui wrote:<br>
> > > oh wow, first bug in a while! You're right, that's not normal and I<br>
> just found<br>
> > > the bug, it was a stupid logic error. I was only cancelling the<br>
> upnp_timeout<br>
> > > timer if there were still some pending upnp requests (was checking<br>
> for the<br>
> > > length of the list, and forgot to do == 0).<br>
> > > I've fixed it now but i broke some unit tests, so I'm looking into<br>
> what side<br>
> > > effects that caused.<br>
> > ><br>
> > > On 01/12/2012 06:08 AM, Eduardo Bezerra wrote:<br>
> > >> I have a router with upnp support, but I got the following output<br>
> when trying<br>
> > >> some code that uses libnice. It seems to successfully create a port<br>
> > forwarding<br>
> > >> rule with upnp, but then it says "timeout". Is this a problem? I<br>
> attached the<br>
> > >> code so that you can see it if you want (I borrowed it from a previous<br>
> > poster to<br>
> > >> the list).<br>
> > >><br>
> > >> (...)<br>
> > >> (process:14384): libnice-DEBUG: Agent 0x1fbadf0: Adding UPnP port<br>
> > >> <a href="http://192.168.1.117:54321" target="_blank">192.168.1.117:54321</a> <<a href="http://192.168.1.117:54321" target="_blank">http://192.168.1.117:54321</a>><br>
> <<a href="http://192.168.1.117:54321" target="_blank">http://192.168.1.117:54321</a>> <<a href="http://192.168.1.117:54321" target="_blank">http://192.168.1.117:54321</a>><br>
> > >> (process:14384): libnice-DEBUG: Agent 0x1fbadf0 : Adding new srv-rflx<br>
> > candidate<br>
> > >> discovery 0x7fdfbfa35010<br>
> > >><br>
> > >> (process:14384): libnice-DEBUG: Agent 0x1fbadf0 : discovery tick #1<br>
> with list<br>
> > >> 0x1faef40 (1)<br>
> > >> (process:14384): libnice-DEBUG: Agent 0x1fbadf0 : discovery -<br>
> scheduling cand<br>
> > >> type 1 addr 127.0.0.1.<br>
> > >><br>
> > >> (process:14384): libnice-DEBUG: Agent 0x1fbadf0 : stream 1 component 1<br>
> > >> STATE-CHANGE 0 -> 1.<br>
> > >> cb_component_state_changed<br>
> > >><br>
> > >> (process:14384): GLib-GIO-WARNING **:<br>
> g_simple_async_result_complete() called<br>
> > >> from wrong context!<br>
> > >><br>
> > >> (process:14384): GLib-GIO-WARNING **:<br>
> g_simple_async_result_complete() called<br>
> > >> from wrong context!<br>
> > >><br>
> > >> (process:14384): GLib-GIO-WARNING **:<br>
> g_simple_async_result_complete() called<br>
> > >> from wrong context!<br>
> > >> (process:14384): libnice-DEBUG: Agent 0x1fbadf0 : Successfully mapped<br>
> > >> <a href="http://192.168.1.117:54321" target="_blank">192.168.1.117:54321</a> <<a href="http://192.168.1.117:54321" target="_blank">http://192.168.1.117:54321</a>><br>
> <<a href="http://192.168.1.117:54321" target="_blank">http://192.168.1.117:54321</a>><br>
> > <<a href="http://192.168.1.117:54321" target="_blank">http://192.168.1.117:54321</a>> to <a href="http://95.127.127.155:54321" target="_blank">95.127.127.155:54321</a><br>
> <<a href="http://95.127.127.155:54321" target="_blank">http://95.127.127.155:54321</a>><br>
> > <<a href="http://95.127.127.155:54321" target="_blank">http://95.127.127.155:54321</a>><br>
> > >> <<a href="http://95.127.127.155:54321" target="_blank">http://95.127.127.155:54321</a>><br>
> > >> (process:14384): libnice-DEBUG: Agent 0x1fbadf0 : UPnP port mapping<br>
> timed out<br>
> > >> (...)<br>
> > >><br>
> > >> Eduardo<br>
> > >><br>
> > >><br>
> > >> _______________________________________________<br>
> > >> Nice mailing list<br>
> > >> <a href="mailto:Nice@lists.freedesktop.org">Nice@lists.freedesktop.org</a> <mailto:<a href="mailto:Nice@lists.freedesktop.org">Nice@lists.freedesktop.org</a>><br>
</div></div>> <mailto:<a href="mailto:Nice@lists.freedesktop.org">Nice@lists.freedesktop.org</a> <mailto:<a href="mailto:Nice@lists.freedesktop.org">Nice@lists.freedesktop.org</a>>><br>
<div class="im">> > >> <a href="http://lists.freedesktop.org/mailman/listinfo/nice" target="_blank">http://lists.freedesktop.org/mailman/listinfo/nice</a><br>
> > ><br>
> > ><br>
> > ><br>
> > ><br>
> > > _______________________________________________<br>
> > > Nice mailing list<br>
> > > <a href="mailto:Nice@lists.freedesktop.org">Nice@lists.freedesktop.org</a> <mailto:<a href="mailto:Nice@lists.freedesktop.org">Nice@lists.freedesktop.org</a>><br>
</div>> <mailto:<a href="mailto:Nice@lists.freedesktop.org">Nice@lists.freedesktop.org</a> <mailto:<a href="mailto:Nice@lists.freedesktop.org">Nice@lists.freedesktop.org</a>>><br>
<div class="im">> > > <a href="http://lists.freedesktop.org/mailman/listinfo/nice" target="_blank">http://lists.freedesktop.org/mailman/listinfo/nice</a><br>
> ><br>
> ><br>
> ><br>
> > _______________________________________________<br>
> > Nice mailing list<br>
> > <a href="mailto:Nice@lists.freedesktop.org">Nice@lists.freedesktop.org</a> <mailto:<a href="mailto:Nice@lists.freedesktop.org">Nice@lists.freedesktop.org</a>><br>
</div>> <mailto:<a href="mailto:Nice@lists.freedesktop.org">Nice@lists.freedesktop.org</a> <mailto:<a href="mailto:Nice@lists.freedesktop.org">Nice@lists.freedesktop.org</a>>><br>
<div class="HOEnZb"><div class="h5">> > <a href="http://lists.freedesktop.org/mailman/listinfo/nice" target="_blank">http://lists.freedesktop.org/mailman/listinfo/nice</a><br>
> ><br>
> ><br>
> ><br>
> ><br>
> > _______________________________________________<br>
> > Nice mailing list<br>
> > <a href="mailto:Nice@lists.freedesktop.org">Nice@lists.freedesktop.org</a> <mailto:<a href="mailto:Nice@lists.freedesktop.org">Nice@lists.freedesktop.org</a>><br>
> > <a href="http://lists.freedesktop.org/mailman/listinfo/nice" target="_blank">http://lists.freedesktop.org/mailman/listinfo/nice</a><br>
><br>
><br>
><br>
> _______________________________________________<br>
> Nice mailing list<br>
> <a href="mailto:Nice@lists.freedesktop.org">Nice@lists.freedesktop.org</a> <mailto:<a href="mailto:Nice@lists.freedesktop.org">Nice@lists.freedesktop.org</a>><br>
> <a href="http://lists.freedesktop.org/mailman/listinfo/nice" target="_blank">http://lists.freedesktop.org/mailman/listinfo/nice</a><br>
><br>
><br>
><br>
><br>
> _______________________________________________<br>
> Nice mailing list<br>
> <a href="mailto:Nice@lists.freedesktop.org">Nice@lists.freedesktop.org</a><br>
> <a href="http://lists.freedesktop.org/mailman/listinfo/nice" target="_blank">http://lists.freedesktop.org/mailman/listinfo/nice</a><br>
<br>
<br>
</div></div><br>_______________________________________________<br>
Nice mailing list<br>
<a href="mailto:Nice@lists.freedesktop.org">Nice@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/nice" target="_blank">http://lists.freedesktop.org/mailman/listinfo/nice</a><br>
<br></blockquote></div><br>