This is a guide to set up server-side support for audio/video calls over XMPP. To do this we will first install and configure [coturn](https://github.com/coturn/coturn). It is a libre STUN/TURN server that helps establish peer connections across firewalls for media streams such as calls. Additionally we will configure Prosody to talk to `coturn`.
This is a guide to set up server-side support for audio/video calls over XMPP. To do this we will first install and configure [Coturn](https://github.com/coturn/coturn). It is a libre STUN/TURN server that helps establish peer connections across firewalls for media streams such as calls. Additionally we will configure Prosody to talk to `coturn`.
Like the other guides, this one assumes Debian stable running on the server, the fact that you will end up hosting a few of your friends and that you have some basic skills working on a linux command line.
@ -31,7 +31,7 @@ To make your server communicate make sure following ports are open in your firew
Then download the configuration by [the homebrewserver.club](https://homebrewserver.club/downloads/turnserver.conf).
Then download the configuration by [the homebrewserver.club](https://homebrewserver.club/downloads/turnserver.conf):
:::console
cd ~
@ -84,16 +84,22 @@ The file looks like this:
Now time for some config. Edit file in a few places:
Add your external IP-address to `listening-ip`. If you don't know it, you can find out using `curl https://ifconfig.co`.
Add your external IP-address to `listening-ip`. If you don't know it, you can find out using the following command:
Set `static-auth-secret` to a decently long passphrase. You can also generate one with: `openssl rand -base64 30`. Take note of it because we will need this secret later.
`curl https://ifconfig.co`
Finally, edit the paths to the Let's Encrypt certificates to whatever you've set in ['Configuring an XMPP server for secure, mobile instant messaging']({filename}instant-messaging/configuring_an_xmpp_server_prosody_0.11.md#enabling-https)
Set `static-auth-secret` to a decently long passphrase. You can also generate one with:
`openssl rand -base64 30`.
Take note of it because we will need this secret later.
Finally, edit the paths to the Let's Encrypt certificates to whatever you've set in ['Configuring an XMPP server for secure, mobile instant messaging']({filename}instant-messaging/configuring_an_xmpp_server_prosody_0.11.md#enabling-https).