[jitsi-dev] ICE failed calling Empathy


#1

Hi all,

I am trying, using Jitsi nightly and Jit.si on Ubuntu, to call a
Jabber.org user using Empathy on Debian however the call always fails
with "ICE failed". Calls initiated from Empathy gives the same result.

What could be the problem?

I will try to test again with logging enabled if it will help.

Best regards,
Markus


#2

Hi,

I hope anyone has an idea of what could be the problem.

Attached is the log file for one call from Jitsi to Empathy. I could not
attach the jitsi0.pcap as it contains XMPP account password (!)

Caller: Jitsi 2.5.5184 (nightly) on Ubuntu 12.04

Callee: empathy 3.8.6-1+b1 amd64
    empathy-common 3.8.6-1 all
    telepathy-gabble 0.18.2-1 amd64
    libnice10:amd64 0.1.4-1 amd64
    on Debian

At the end of the log are the ICE failure messages, like for instance:
ConnectivityCheckClient.processTimeout() timeout for pair:
192.168.3.140:5001/udp/host -> 192.168.17.165:59982/udp/host
(audio.RTCP), failing

Best regards,
Markus

jitsi0.log.0-filtered.txt (43.7 KB)

···

On 2014-04-07 19:16, Markus Kil�s wrote:

Hi all,

I am trying, using Jitsi nightly and Jit.si on Ubuntu, to call a
Jabber.org user using Empathy on Debian however the call always fails
with "ICE failed". Calls initiated from Empathy gives the same result.

What could be the problem?

I will try to test again with logging enabled if it will help.

Best regards,
Markus


#3

Hello,

···

On 09/04/14 15:47, Markus Kil�s wrote:

On 2014-04-07 19:16, Markus Kil�s wrote:

Hi all,

I am trying, using Jitsi nightly and Jit.si on Ubuntu, to call a
Jabber.org user using Empathy on Debian however the call always fails
with "ICE failed". Calls initiated from Empathy gives the same result.

What could be the problem?

I will try to test again with logging enabled if it will help.

Best regards,
Markus

Hi,

I hope anyone has an idea of what could be the problem.

Attached is the log file for one call from Jitsi to Empathy. I could not
attach the jitsi0.pcap as it contains XMPP account password (!)

The ICE connections fail because of invalid credentials. The two clients
exchange these credentials in Jingle, so we need to see the pcap. Any
chance you can send a stripped version?

Regards,
Boris


#4

Hi Boris,

Attached is a stripped version.

Best regards,
Markus

jitsi0-filtered.pcap.zip (97.4 KB)

···

On 2014-04-09 16:09, Boris Grozev wrote:

Hello,

On 09/04/14 15:47, Markus Kil�s wrote:

On 2014-04-07 19:16, Markus Kil�s wrote:

Hi all,

I am trying, using Jitsi nightly and Jit.si on Ubuntu, to call a
Jabber.org user using Empathy on Debian however the call always fails
with "ICE failed". Calls initiated from Empathy gives the same result.

What could be the problem?

I will try to test again with logging enabled if it will help.

Best regards,
Markus

Hi,

I hope anyone has an idea of what could be the problem.

Attached is the log file for one call from Jitsi to Empathy. I could not
attach the jitsi0.pcap as it contains XMPP account password (!)

The ICE connections fail because of invalid credentials. The two clients
exchange these credentials in Jingle, so we need to see the pcap. Any
chance you can send a stripped version?

Regards,
Boris


#5

Hello, sorry for the delay, I didn't get a chance to go over this earlier.

It appears that Empathy does not use the correct STUN username when
responding to Jitsi's connectivity checks. You might want to address
this to the Empathy developers. Here's more details from the pcap:

Jitsi does a jingle session-initiate, using ufrag=2tqj7 (packet 1704).
Empathy responds with its ICE candidates in packets 1723, 1725, 1727 and
1733. They all use ufrag=3P2b.

Jitsi sends STUN binding requests with username "3P2b:2tqj7" (ex. packet
1728). The received responses have the username "2tqj7:uFA5" (ex. packet
1752). Jitsi expects "2tqj7:3P2b", so it does not accept the responses.

The usage of the ICE ufrags to generate the STUN username is described
here, and I think Jitsi's behavior is correct:
http://tools.ietf.org/html/rfc5245#section-7.1.2.3

Regards,
Boris

···

On 09/04/14 19:14, Markus Kil�s wrote:

Hi Boris,

Attached is a stripped version.


#6

Hi,

The issue has been reported in nice used by Empathy here:
https://bugs.freedesktop.org/show_bug.cgi?id=77420

Regards,
Markus

···

On 2014-04-13 18:51, Boris Grozev wrote:

On 09/04/14 19:14, Markus Kil�s wrote:

Hi Boris,

Attached is a stripped version.

Hello, sorry for the delay, I didn't get a chance to go over this earlier.

It appears that Empathy does not use the correct STUN username when
responding to Jitsi's connectivity checks. You might want to address
this to the Empathy developers. Here's more details from the pcap:

Jitsi does a jingle session-initiate, using ufrag=2tqj7 (packet 1704).
Empathy responds with its ICE candidates in packets 1723, 1725, 1727 and
1733. They all use ufrag=3P2b.

Jitsi sends STUN binding requests with username "3P2b:2tqj7" (ex. packet
1728). The received responses have the username "2tqj7:uFA5" (ex. packet
1752). Jitsi expects "2tqj7:3P2b", so it does not accept the responses.

The usage of the ICE ufrags to generate the STUN username is described
here, and I think Jitsi's behavior is correct:
http://tools.ietf.org/html/rfc5245#section-7.1.2.3

Regards,
Boris