Hi @homer77, thanks for your reply and help. I have read your post.
So I have followed all the steps below and TURN seems to be working - I can make voice calls between my Android phone and Ubuntu/Linux desktop using two users I have set up on Freedombox! I can also connect to external Rooms outside my network.
But I still can not make video calls. I have since found this is because of an issue of hardware compatibility on my laptop - the web cam is not being found by the OS!
Before setting up TURN I was already able to make voice calls between my two accounts, so I am not sure if setting up TURN has helped anything an I’m not sure how to test TURN.
The only thing I haven’t done is change my Freedombox FireWall settings. But everything seems to work, so I am guessing that I don;t need to.
Any ideas with how to test my setup are very welcome, as our any other comments you might have?
So here’s what I found:
yes, the NextCloud text, voice and video chat app called, Talk, does install the open source STUN/TURN server called Coturn onto the Raspberry Pi, as part of the installation of Talk. The following post helped me to locate the TURN server config file on my RPi3B/Freedombox (Raspbian Buster (with Freedombox install from the repos) set up and it provides settings for Matrix-Synapse : https://drwho.virtadpt.net/archive/2020-01-18/making-a-matrix-server-stun-enabled
as indicated in the above link, the config file for the Coturn STUN/TURN server on my setup is:
sudo nano /etc/turnserver.conf (although I didn’t make any changes, but it was interesting to see the settings!);
I got the turn_shared_secret from the NextCloud, Talk settings page - this is required, see below;
and the config file for Matrix-Synapse is: `sudo nano /etc/matrix-synapse/homeserver.yaml
I made a copy of this before making any changes and I did need to refer back to it:
sudo cp /etc/matrix-synapse/homeserver.yaml /etc/matrix-synapse/BACKUP-homeserver.yaml
the only changes I made are to the sections below, in CAPITALS:
turn_uris: [ “turn:YOUR-DOMAIN-NAME:3478?transport=tcp”, “turn:YOUR-DOMAIN-NAME:3478?transport=udp” ]
Save and exit with
Ctrl + X, then
To reload matrix-synapse:
Thanks for your help.
After some testing I haven’t managed to get Coturn TURN server to work. I can make voice calls with Riot/Matrix from my Android phone to my Ubuntu laptop if both are on the same local network, but if I route my phone through a VPN then the call rings through to the laptop, but then doesn’t connect when answered. And the phone eventually automatically drops the call after a 20 secs or so. So it looks like the TURN server is not working. Also, when I test the TURN server with code at the following page it reports that the TURN server is not working! https://stackoverflow.com/questions/28772212/stun-turn-server-connectivity-test
So I’m a bit stuck. I have tried all sorts of changes to the configurations and followed a load of different tutorials. I guess I’ll pick this up on a Coturn/TURN forum.