I am doing nice_agent_set_relay_info (agent, stream_d, 1, "1.1.1.2", 8085, "toto", "password", NICE_RELAY_TYPE_TURN_UDP); before calling nice_agent_gather_candidates.<div><br></div><div>Does that seems correct?<br>
<div><br></div><div>Thanks,</div><div>Gurpreet Singh<br><div><br><div class="gmail_quote">On Wed, Aug 15, 2012 at 7:40 PM, Youness Alaoui <span dir="ltr"><<a href="mailto:youness.alaoui@collabora.co.uk" target="_blank">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">Hi,<br>
<br>
Did you properly call nice_agent_set_relay_info with all the required information ?<br>
>From the log you attached, it seemed the allocation is happening, but data can't<br>
be sent because of a permission problem, I'm not entirely sure what happens here<br>
to be honest.<br>
<div class="im"><br>
On 08/14/2012 02:31 AM, Gurpreet Sachdeva wrote:<br>
> I further tried to investigate the issue. It seems there was no Allocation<br>
> request made to the TURN server from the libnice.<br>
><br>
> Am I missing something to get libnice work with a relay sever?<br>
><br>
> Thanks,<br>
> Gurpreet Singh<br>
><br>
> ---------- Forwarded message ----------<br>
</div><div class="im">> From: *Gurpreet Sachdeva* <<a href="mailto:gurpreet.sachdeva@gmail.com">gurpreet.sachdeva@gmail.com</a><br>
> <mailto:<a href="mailto:gurpreet.sachdeva@gmail.com">gurpreet.sachdeva@gmail.com</a>>><br>
> Date: Mon, Aug 6, 2012 at 5:15 PM<br>
> Subject: Re: [Nice] Relay error 437 (Allocation Mismatch) with libnice client<br>
> To: 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>>><br>
><br>
><br>
> Thanks Youness for your suggestions but unfortunately the server logs didn't<br>
> help much too.<br>
><br>
> Please find attached the turnserver output logs and wireshark (.pcap) logs. Any<br>
> clue would be welcomed.<br>
><br>
> What is the default mode of TURN in libnice? RFC5766 or DRAFT9? I am using<br>
</div>> TurnServer 0.6 from <a href="http://turnserver.org" target="_blank">turnserver.org</a> <<a href="http://turnserver.org" target="_blank">http://turnserver.org</a>>.<br>
<div class="im">><br>
> Thanks,<br>
> Gurpreet Singh<br>
><br>
><br>
> On Fri, Aug 3, 2012 at 7:50 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>
>     Hi,<br>
>     I'm not sure what could cause this. the log doesn't say much and the wireshark<br>
>     dump was all text, you need to save it in .pcap format if it is to be useful.<br>
>     Try to see also what turnserver says, maybe it has some information on<br>
>     what's wrong.<br>
>     Good luck.<br>
><br>
><br>
>     On 08/01/2012 01:56 AM, Gurpreet Sachdeva wrote:<br>
>     > I tried running a libnice client on the bases of the one share by Tiago in the<br>
>     > forum. For the relay server I downloaded and configured the one at<br>
</div>>     > <a href="http://turnserver.org" target="_blank">turnserver.org</a> <<a href="http://turnserver.org" target="_blank">http://turnserver.org</a>> <<a href="http://turnserver.org" target="_blank">http://turnserver.org</a>>. The<br>

<div class="im">>     candidate addresses for host,<br>
>     > reflexive and relay are getting created and I am able to exchange them by<br>
>     > dumping them in a file.<br>
>     ><br>
>     ><br>
>     ><br>
>     > Though I am not able to make an ICE connection, the wireshark logs says<br>
>     Refresh<br>
>     > Error Response error-code: 437 (Allocation Mismatch) Allocation mismatch.<br>
>     ><br>
>     ><br>
>     ><br>
>     > Attached are the lib nice debug output logs and wireshark logs. Please suggest<br>
>     > if anyone has come across this issue and a possible fix for it.<br>
>     ><br>
>     ><br>
>     > Thanks,<br>
>     ><br>
>     > Gurpreet Singh<br>
>     ><br>
>     ><br>
>     ><br>
>     > _______________________________________________<br>
>     > nice mailing list<br>
</div>>     > <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>
</div>>     <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>
> _______________________________________________<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></div></div></div>