Configurazione del tuo server TURN
Jami can be configured to use TURN or STUN servers (RFC5766) to establish a connection between two peers.
Il server di default di TURN è «turn.jami.net», con nome utente «ring», password «ring» e regno «ring».
In this guide, we will setup a coTURN server. There are other TURN/STUN server implementations available under a free license, such as TurnServer and Restund.
Installazione
The CoTURN server is available on most Linux distributions. On Debian, install it with the following command:
apt-get install coturn
Configurazione
Here is a basic turnserver.conf
configuration file:
listening-port=10000
listening-ip=0.0.0.0
min-port=10000
max-port=30000
lt-cred-mech
realm=sfl
This also will function as a STUN server. The STUN server does not require a username and password (A STUN server uses very little bandwidth).
Creazione di utenti sul tuo server TURN
Per creare utenti sul tuo server TURN, usa il binario turnadmin
(questo potrebbe richiedere autorizzazioni superutente).
turnadmin -a -u bob -p secretpassword -r sfl
Lancio del server TURN
turnserver -c turnserver.conf
Configurazione Jami per autenticare con il server TURN
Puoi configurare Jami per utilizzare il tuo server TURN dalla sezione avanzata delle impostazioni dell” account:
Campo |
Valore |
Esempio |
---|---|---|
** url del server** |
host e porta del server |
0,0.0.0:10000 |
nome utente |
nome utente |
Bob |
password |
password |
password segreta |
Realm |
regno |
Sfl |