element-hq / riot-android

A glossy Matrix collaboration client for Android
Apache License 2.0
1.4k stars 394 forks source link

"Cannot connect media" in voice call between regular Android clients #1675

Open ghost opened 6 years ago

ghost commented 6 years ago

Android 7 "Nougat" (LG G5) <-> Android 6 "Marshmallow" (Moto G 2), Call "connecting" but abruptly ends before it can begin, citing "could not connect media". Calls between two Nougat devices (LG G5 and Xperia Z4) seemed fine. Wondering if it was depending on something from Nougat, was RAM limited by Moto G2's 1GB RAM, or both?

*Both devices were running 0.7.03 from Play Store.

ylecollen commented 6 years ago

it seems something failed on your ice server. https://github.com/matrix-org/matrix-android-sdk/blob/master/matrix-sdk/src/main/java/org/matrix/androidsdk/call/MXWebRtcCall.java#L597

ylecollen commented 6 years ago

@clxcoltz did you test on the same wifi network ? Could you send a bug report ? I don't we will able to fix your issue as it seems being a server one.

laicon188 commented 5 years ago

Hello.

Now we have same problems with voip and video calls. When I try to call, after answering, the Riot shows that it tries to connect and then it is reset. It happents when I use Mobile internet on my phone. The problem started a week ago. I have already update matrix synapse to version 99.3 and update Riot on my phone. I tryed to make call between Android-Android, Android-iPhone, iPhone-iPhone but all then failed.

Today I update to a version 0.99.3.2 Problem not solved. Noticed that I can make calls via WiFi, when both phones in the same WiFi network.

Illuminatedmind commented 5 years ago

Noticed that I can make calls via WiFi, when both phones in the same WiFi network.

Hello. We have exactly the same problem via Android-Android on different phones and GSM providers. But when we make calls via Wifi, everything works fine.

laicon188 commented 5 years ago

Noticed that I can make calls via WiFi, when both phones in the same WiFi network.

Hello. We have exactly the same problem via Android-Android on different phones and GSM providers. But when we make calls via Wifi, everything works fine.

Check your stun server. My stun server was unavaliable, that's why I can't make call from different networks.

Illuminatedmind commented 5 years ago

Check your stun server.

Unfortunately, I was inattentive to your early post. I use matrix.org server. And if I understood correctly, the STUN-server is about Home server that is configured by you..

johnmosesventura06 commented 5 years ago

Hi! can we get an update if there's any fixed for this issue? Thanks