Mattermost Call not working on iOS/Android

Summary
Mattermost for Android/iOS can’t call

Steps to reproduce
Mattermost for Android/iOS calling from outside the network displays “Error: unable to connect to voice call: timed out waiting for peer connection” in 4 seconds.

Expected behavior
Hi Everyone,

My Mattermost server is hosted on Ubuntu. I’m currently testing the call functionality of Mattermost. It works when I’m calling between computers (Windows/Mac), but when I’m trying to call from a computer to a phone (or vice versa), the same error displays on the phone side. Here is the mattermost log:

mattermost.log

{"timestamp":"2024-04-02 20:10:55.514 +08:00","level":"error","msg":"callback failed: call state is missing from channel state","caller":"app/plugin_api.go:988","plugin_id":"com.mattermost.calls","origin":"main.(*Plugin).handleLeave websocket.go:381"}
{"timestamp":"2024-04-02 20:13:20.262 +08:00","level":"error","msg":"callback failed: call state is missing from channel state","caller":"app/plugin_api.go:988","plugin_id":"com.mattermost.calls","origin":"main.(*Plugin).handleLeave websocket.go:381"}
{"timestamp":"2024-04-02 20:20:29.283 +08:00","level":"error","msg":"callback failed: call state is missing from channel state","caller":"app/plugin_api.go:988","plugin_id":"com.mattermost.calls","origin":"main.(*Plugin).handleLeave websocket.go:381"}

Error Screenshot:
image

I hope someone can help me resolve this issue.

Thanks.

I’m guessing your mobile devices aren’t allowing UDP connections to 8443

https://docs.mattermost.com/configure/calls-deployment.html#network

Hi John,

I already enabled do a tcping/udping on mobile devices and they can ping port 8443.

Thank you.

Calls self-hosted deployment - Mattermost documentation may help.

1 Like

Ugh, that “Call Failed” message is so frustrating! Let’s try to figure out what’s going on. The first thing to check is the simplest: your signal. Make sure you have a decent cellular connection. Try moving to a different location, like near a window, to see if that helps. Sometimes it’s just a temporary dead spot.
If your signal seems okay, try turning your iPhone off and on again. It’s the classic tech fix, but it often works! While you’re at it, make sure Airplane Mode isn’t accidentally turned on. You can find it in the Control Center.
Another thing to check is your cellular plan. Make sure your account is active and that you haven’t used up all your data or minutes. You can usually check this through your carrier’s app or website.
Sometimes, the problem might be with your SIM card. Try taking it out and carefully putting it back in. Make sure it’s properly seated. If you have another phone, you could even try putting your SIM card in that phone to see if the problem is with the SIM or the phone itself.

If none of these solutions work, you can follow for much better instruction below.
https://thegeekpage.com/call-failed-error-on-iphone-how-to-fix/