nextcloud / spreed

🗨️ Nextcloud Talk – chat, video & audio calls for Nextcloud
https://nextcloud.com/talk
GNU Affero General Public License v3.0
1.64k stars 437 forks source link

Federated calls when instances use the same signaling server #13671

Closed pmarini-nc closed 2 weeks ago

pmarini-nc commented 2 weeks ago

Hello, is the scenario in which the federated calls are on two instances that are defined on the same signaling server supported?

I'm doing some tests with:

With the same two instances, calls work if I define them on different signaling servers and calls don't work if I define them on the same signaling server.

"Don't work" here means that the participants don't see each other in the call even if event messages suggest so.

I can provide more details (logs.. etc) but first wanted to check if there is already some root cause known.

nickvergessen commented 2 weeks ago

What was the state @fancycode

fancycode commented 2 weeks ago

@nickvergessen You had a similar problem with two instances using the same signaling server during development. However this was fixed with https://github.com/strukturag/nextcloud-spreed-signaling/pull/808/commits/b233651db0464ea383f6b1f4330fc34d1e54c0b4 which is part of 2.0.0.

So from my point of view this should work although I haven't tested this in a while.

SystemKeeper commented 2 weeks ago

This is basically my development setup and works fine for me

pmarini-nc commented 2 weeks ago

For me it doesn't work and I'm using nextcloud-spreed-signaling 2.0.0. @fancycode, any pointer on which error I should look at in the logs?

pmarini-nc commented 2 weeks ago

The behaviour in my setup in a screen recording vokoscreenNG-2024-10-30_21-41-42.zip

SystemKeeper commented 2 weeks ago

The conversation not found error is weird, that should not be the case. Can you check your console logs in both browsers and also the signaling server logs for any errors?

fancycode commented 2 weeks ago

@fancycode, any pointer on which error I should look at in the logs?

The problem @nickvergessen had in the past was that users got randomly disconnected while in a federated call. This was due to pings from the signaling server to Nextcloud were missing in some cases. However this was fixed with the above commit.

Your problem looks different, so looking at the logs as @SystemKeeper suggested would also be my first guess. In addition, please check your Nextcloud log for any errors.

pmarini-nc commented 2 weeks ago

My bad, it was a network configuration issue. The signaling server was not able to connect to itself:

Error creating federation client to https://my.signaling.name/ for 8yYnBLI7ZN[..] to join room 92jc9nn2: dial tcp XXX.XXX.XXX.XXX:443: i/o timeout

Sorry for the noise and thanks all for the support!