ArchiveOrangemail archive

nice.lists.freedesktop.org


(List home) (Recent threads) (87 other Freedesktop.org lists)

Subscription Options

  • RSS or Atom: Read-only subscription using a browser or aggregator. This is the recommended way if you don't need to send messages to the list. You can learn more about feed syndication and clients here.
  • Conventional: All messages are delivered to your mail address, and you can reply. To subscribe, send an email to the list's subscribe address with "subscribe" in the subject line, or visit the list's homepage here.
  • Low traffic list: less than 3 messages per day
  • This list contains about 771 messages, beginning Sep 2007
  • 0 messages added yesterday
Report the Spam
This button sends a spam report to the moderator. Please use it sparingly. For other removal requests, read this.
Are you sure? yes no

Relay error 437 (Allocation Mismatch) with libnice client

Ad
Gurpreet Sachdeva 1343879908Thu, 02 Aug 2012 03:58:28 +0000 (UTC)
attWireshark (27.4 kB) attNice (21.6 kB)
I tried running a libnice client on the bases of the one share by Tiago in
the forum. For the relay server I downloaded and configured the one at
turnserver.org. The candidate addresses for host, reflexive and relay are
getting created and I am able to exchange them by dumping them in a file.



Though I am not able to make an ICE connection, the wireshark logs says
Refresh Error Response error-code: 437 (Allocation Mismatch) Allocation
mismatch.



Attached are the lib nice debug output logs and wireshark logs. Please
suggest if anyone has come across this issue and a possible fix for it.


Thanks,

Gurpreet Singh
Youness Alaoui 1344003674Fri, 03 Aug 2012 14:21:14 +0000 (UTC)
Hi,
I'm not sure what could cause this. the log doesn't say much and the wireshark
dump was all text, you need to save it in .pcap format if it is to be useful.
Try to see also what turnserver says, maybe it has some information on what's wrong.
Good luck.On 08/01/2012 01:56 AM, Gurpreet Sachdeva wrote:
> I tried running a libnice client on the bases of the one share by Tiago in the
> forum. For the relay server I downloaded and configured the one at
> turnserver.org <http://turnserver.org>. The candidate addresses for host,
> reflexive and relay are getting created and I am able to exchange them by
> dumping them in a file.
> 
>  
> 
> Though I am not able to make an ICE connection, the wireshark logs says Refresh
> Error Response error-code: 437 (Allocation Mismatch) Allocation mismatch.
> 
>  
> 
> Attached are the lib nice debug output logs and wireshark logs. Please suggest
> if anyone has come across this issue and a possible fix for it.
> 
> 
> Thanks,
> 
> Gurpreet Singh
> 
> 
> 
> _______________________________________________
> nice mailing list
> 
> http://lists.freedesktop.org/mailman/listinfo...
Gurpreet Sachdeva 1344925901Tue, 14 Aug 2012 06:31:41 +0000 (UTC)
attTURN (10.5 kB) attWireshark.tar.gz (151 B)
I further tried to investigate the issue. It seems there was no Allocation
request made to the TURN server from the libnice.

Am I missing something to get libnice work with a relay sever?

Thanks,
Gurpreet Singh

---------- Forwarded message ----------
From: Gurpreet Sachdeva 
Date: Mon, Aug 6, 2012 at 5:15 PM
Subject: Re: [Nice] Relay error 437 (Allocation Mismatch) with libnice
client
To: Youness Alaoui 


Thanks Youness for your suggestions but unfortunately the server logs
didn't help much too.

Please find attached the turnserver output logs and wireshark (.pcap) logs.
Any clue would be welcomed.

What is the default mode of TURN in libnice? RFC5766 or DRAFT9? I am using
TurnServer 0.6 from turnserver.org.

Thanks,
Gurpreet SinghOn Fri, Aug 3, 2012 at 7:50 PM, Youness Alaoui <
 wrote:

> Hi,
> I'm not sure what could cause this. the log doesn't say much and the
> wireshark
> dump was all text, you need to save it in .pcap format if it is to be
> useful.
> Try to see also what turnserver says, maybe it has some information on
> what's wrong.
> Good luck.
>
>
> On 08/01/2012 01:56 AM, Gurpreet Sachdeva wrote:
> > I tried running a libnice client on the bases of the one share by Tiago
> in the
> > forum. For the relay server I downloaded and configured the one at
> > turnserver.org <http://turnserver.org>. The candidate addresses for
> host,
> > reflexive and relay are getting created and I am able to exchange them by
> > dumping them in a file.
> >
> >
> >
> > Though I am not able to make an ICE connection, the wireshark logs says
> Refresh
> > Error Response error-code: 437 (Allocation Mismatch) Allocation mismatch.
> >
> >
> >
> > Attached are the lib nice debug output logs and wireshark logs. Please
> suggest
> > if anyone has come across this issue and a possible fix for it.
> >
> >
> > Thanks,
> >
> > Gurpreet Singh
> >
> >
> >
> > _______________________________________________
> > nice mailing list
> > 
> > http://lists.freedesktop.org/mailman/listinfo...
>
>
>
> _______________________________________________
> nice mailing list
> 
> http://lists.freedesktop.org/mailman/listinfo...
>
>
Youness Alaoui 1345039862Wed, 15 Aug 2012 14:11:02 +0000 (UTC)
Hi,

Did you properly call nice_agent_set_relay_info with all the required information ?
From the log you attached, it seemed the allocation is happening, but data can't
be sent because of a permission problem, I'm not entirely sure what happens here
to be honest.On 08/14/2012 02:31 AM, Gurpreet Sachdeva wrote:
> I further tried to investigate the issue. It seems there was no Allocation
> request made to the TURN server from the libnice.
> 
> Am I missing something to get libnice work with a relay sever?
> 
> Thanks,
> Gurpreet Singh
> 
> ---------- Forwarded message ----------
> From: *Gurpreet Sachdeva* 
> >
> Date: Mon, Aug 6, 2012 at 5:15 PM
> Subject: Re: [Nice] Relay error 437 (Allocation Mismatch) with libnice client
> To: Youness Alaoui 
> >
> 
> 
> Thanks Youness for your suggestions but unfortunately the server logs didn't
> help much too.
> 
> Please find attached the turnserver output logs and wireshark (.pcap) logs. Any
> clue would be welcomed.
> 
> What is the default mode of TURN in libnice? RFC5766 or DRAFT9? I am using
> TurnServer 0.6 from turnserver.org <http://turnserver.org>.
> 
> Thanks,
> Gurpreet Singh
> 
> 
> On Fri, Aug 3, 2012 at 7:50 PM, Youness Alaoui 
> > wrote:
> 
>     Hi,
>     I'm not sure what could cause this. the log doesn't say much and the wireshark
>     dump was all text, you need to save it in .pcap format if it is to be useful.
>     Try to see also what turnserver says, maybe it has some information on
>     what's wrong.
>     Good luck.
> 
> 
>     On 08/01/2012 01:56 AM, Gurpreet Sachdeva wrote:
>     > I tried running a libnice client on the bases of the one share by Tiago in the
>     > forum. For the relay server I downloaded and configured the one at
>     > turnserver.org <http://turnserver.org> <http://turnserver.org>. The
>     candidate addresses for host,
>     > reflexive and relay are getting created and I am able to exchange them by
>     > dumping them in a file.
>     >
>     >
>     >
>     > Though I am not able to make an ICE connection, the wireshark logs says
>     Refresh
>     > Error Response error-code: 437 (Allocation Mismatch) Allocation mismatch.
>     >
>     >
>     >
>     > Attached are the lib nice debug output logs and wireshark logs. Please suggest
>     > if anyone has come across this issue and a possible fix for it.
>     >
>     >
>     > Thanks,
>     >
>     > Gurpreet Singh
>     >
>     >
>     >
>     > _______________________________________________
>     > nice mailing list
>     >  
>     > http://lists.freedesktop.org/mailman/listinfo...
> 
> 
> 
>     _______________________________________________
>     nice mailing list
>      
>     http://lists.freedesktop.org/mailman/listinfo...
> 
> 
> 
> 
> 
> _______________________________________________
> nice mailing list
> 
> http://lists.freedesktop.org/mailman/listinfo...
Gurpreet Sachdeva 1345438394Mon, 20 Aug 2012 04:53:14 +0000 (UTC)
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.

Does that seems correct?

Thanks,
Gurpreet SinghOn Wed, Aug 15, 2012 at 7:40 PM, Youness Alaoui <
 wrote:

> Hi,
>
> Did you properly call nice_agent_set_relay_info with all the required
> information ?
> From the log you attached, it seemed the allocation is happening, but data
> can't
> be sent because of a permission problem, I'm not entirely sure what
> happens here
> to be honest.
>
> On 08/14/2012 02:31 AM, Gurpreet Sachdeva wrote:
> > I further tried to investigate the issue. It seems there was no
> Allocation
> > request made to the TURN server from the libnice.
> >
> > Am I missing something to get libnice work with a relay sever?
> >
> > Thanks,
> > Gurpreet Singh
> >
> > ---------- Forwarded message ----------
> > From: *Gurpreet Sachdeva* 
> > >
> > Date: Mon, Aug 6, 2012 at 5:15 PM
> > Subject: Re: [Nice] Relay error 437 (Allocation Mismatch) with libnice
> client
> > To: Youness Alaoui 
> > >
> >
> >
> > Thanks Youness for your suggestions but unfortunately the server logs
> didn't
> > help much too.
> >
> > Please find attached the turnserver output logs and wireshark (.pcap)
> logs. Any
> > clue would be welcomed.
> >
> > What is the default mode of TURN in libnice? RFC5766 or DRAFT9? I am
> using
> > TurnServer 0.6 from turnserver.org <http://turnserver.org>.
> >
> > Thanks,
> > Gurpreet Singh
> >
> >
> > On Fri, Aug 3, 2012 at 7:50 PM, Youness Alaoui <
> 
> > > wrote:
> >
> >     Hi,
> >     I'm not sure what could cause this. the log doesn't say much and the
> wireshark
> >     dump was all text, you need to save it in .pcap format if it is to
> be useful.
> >     Try to see also what turnserver says, maybe it has some information
> on
> >     what's wrong.
> >     Good luck.
> >
> >
> >     On 08/01/2012 01:56 AM, Gurpreet Sachdeva wrote:
> >     > I tried running a libnice client on the bases of the one share by
> Tiago in the
> >     > forum. For the relay server I downloaded and configured the one at
> >     > turnserver.org <http://turnserver.org> <http://turnserver.org>.
> The
> >     candidate addresses for host,
> >     > reflexive and relay are getting created and I am able to exchange
> them by
> >     > dumping them in a file.
> >     >
> >     >
> >     >
> >     > Though I am not able to make an ICE connection, the wireshark logs
> says
> >     Refresh
> >     > Error Response error-code: 437 (Allocation Mismatch) Allocation
> mismatch.
> >     >
> >     >
> >     >
> >     > Attached are the lib nice debug output logs and wireshark logs.
> Please suggest
> >     > if anyone has come across this issue and a possible fix for it.
> >     >
> >     >
> >     > Thanks,
> >     >
> >     > Gurpreet Singh
> >     >
> >     >
> >     >
> >     > _______________________________________________
> >     > nice mailing list
> >     >  
> >     > http://lists.freedesktop.org/mailman/listinfo...
> >
> >
> >
> >     _______________________________________________
> >     nice mailing list
> >      
> >     http://lists.freedesktop.org/mailman/listinfo...
> >
> >
> >
> >
> >
> > _______________________________________________
> > nice mailing list
> > 
> > http://lists.freedesktop.org/mailman/listinfo...
>
>
>
> _______________________________________________
> nice mailing list
> 
> http://lists.freedesktop.org/mailman/listinfo...
>
>
Youness Alaoui 1345474225Mon, 20 Aug 2012 14:50:25 +0000 (UTC)
Yes, it looks fine.
Make sure you use the latest version of both turnserver and libnice. Also, you'd
need to be using the RFC compatibility mode on the nice agent.On 08/20/2012 12:47 AM, Gurpreet Sachdeva wrote:
> 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.
> 
> Does that seems correct?
> 
> Thanks,
> Gurpreet Singh
> 
> On Wed, Aug 15, 2012 at 7:40 PM, Youness Alaoui 
> > wrote:
> 
>     Hi,
> 
>     Did you properly call nice_agent_set_relay_info with all the required
>     information ?
>     From the log you attached, it seemed the allocation is happening, but data can't
>     be sent because of a permission problem, I'm not entirely sure what happens here
>     to be honest.
> 
>     On 08/14/2012 02:31 AM, Gurpreet Sachdeva wrote:
>     > I further tried to investigate the issue. It seems there was no Allocation
>     > request made to the TURN server from the libnice.
>     >
>     > Am I missing something to get libnice work with a relay sever?
>     >
>     > Thanks,
>     > Gurpreet Singh
>     >
>     > ---------- Forwarded message ----------
>     > From: *Gurpreet Sachdeva* 
>     
>     >  >>
>     > Date: Mon, Aug 6, 2012 at 5:15 PM
>     > Subject: Re: [Nice] Relay error 437 (Allocation Mismatch) with libnice client
>     > To: Youness Alaoui 
>     
>     > 
>     >>
>     >
>     >
>     > Thanks Youness for your suggestions but unfortunately the server logs didn't
>     > help much too.
>     >
>     > Please find attached the turnserver output logs and wireshark (.pcap)
>     logs. Any
>     > clue would be welcomed.
>     >
>     > What is the default mode of TURN in libnice? RFC5766 or DRAFT9? I am using
>     > TurnServer 0.6 from turnserver.org <http://turnserver.org>
>     <http://turnserver.org>.
>     >
>     > Thanks,
>     > Gurpreet Singh
>     >
>     >
>     > On Fri, Aug 3, 2012 at 7:50 PM, Youness Alaoui
>      
>     > 
>     >> wrote:
>     >
>     >     Hi,
>     >     I'm not sure what could cause this. the log doesn't say much and the
>     wireshark
>     >     dump was all text, you need to save it in .pcap format if it is to be
>     useful.
>     >     Try to see also what turnserver says, maybe it has some information on
>     >     what's wrong.
>     >     Good luck.
>     >
>     >
>     >     On 08/01/2012 01:56 AM, Gurpreet Sachdeva wrote:
>     >     > I tried running a libnice client on the bases of the one share by
>     Tiago in the
>     >     > forum. For the relay server I downloaded and configured the one at
>     >     > turnserver.org <http://turnserver.org> <http://turnserver.org>
>     <http://turnserver.org>. The
>     >     candidate addresses for host,
>     >     > reflexive and relay are getting created and I am able to exchange
>     them by
>     >     > dumping them in a file.
>     >     >
>     >     >
>     >     >
>     >     > Though I am not able to make an ICE connection, the wireshark logs says
>     >     Refresh
>     >     > Error Response error-code: 437 (Allocation Mismatch) Allocation
>     mismatch.
>     >     >
>     >     >
>     >     >
>     >     > Attached are the lib nice debug output logs and wireshark logs.
>     Please suggest
>     >     > if anyone has come across this issue and a possible fix for it.
>     >     >
>     >     >
>     >     > Thanks,
>     >     >
>     >     > Gurpreet Singh
>     >     >
>     >     >
>     >     >
>     >     > _______________________________________________
>     >     > nice mailing list
>     >     >  
>      >
>     >     > http://lists.freedesktop.org/mailman/listinfo...
>     >
>     >
>     >
>     >     _______________________________________________
>     >     nice mailing list
>     >      
>      >
>     >     http://lists.freedesktop.org/mailman/listinfo...
>     >
>     >
>     >
>     >
>     >
>     > _______________________________________________
>     > nice mailing list
>     >  
>     > http://lists.freedesktop.org/mailman/listinfo...
> 
> 
> 
>     _______________________________________________
>     nice mailing list
>      
>     http://lists.freedesktop.org/mailman/listinfo...
> 
> 
> 
> 
> _______________________________________________
> nice mailing list
> 
> http://lists.freedesktop.org/mailman/listinfo...
Home | About | Privacy