To enable voice & video call, you need to install Turn Server.
- Install coturn using apt-get
sudo apt-get -y update
sudo apt-get -y install coturn
-
Enable coturn by editing
/etc/default/coturn
, remove “#” comment onTURNSERVER_ENABLED
to enable turnserver. -
Create your coturn config in
/etc/turnserver.conf
, you can check the example config, some config lines are commented out to disable SSL, you can enable it by removing the “#” and editing it to your own need. -
Run the turnserver from command line
turnserver
To let coturn work, you need to open these port:
- 80 TCP
- 443 TCP
- 3478 UDP
- 10000–20000 UDP
In some cases, some mobile provider can’t be used to access port 3478 or port 5349, try to replace the port in config with 8000 to check if it solve the problem.