Configurar el seu propi servidor TURN
Jami can be configured to use TURN or STUN servers (RFC5766) to establish a connection between two peers.
El servidor de TURN està configurat per «turn.jami.net», amb nom d’usuari «ring», contrasenya «ring», i domini «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.
Installació
The CoTURN server is available on most Linux distributions. On Debian, install it with the following command:
apt-get install coturn
Configuració
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).
Creació d” usuaris en el seu servidor TURN
Per crear usuaris en el seu servidor TURN, utilitzeu el binari turnadmin
(això pot requerir permíses de superusuari).
turnadmin -a -u bob -p secretpassword -r sfl
Lançament del servidor TURN
turnserver -c turnserver.conf
Configurar Jami per autenticar amb el servidor TURN
Pots configurar Jami per utilitzar el teu servidor TURN des de la secció avançada de les configuracions de la teva compte:
Camp |
Valor |
Exemple |
---|---|---|
servidor url |
host i port del seu servidor |
0.0.0.0:10000 |
Nom d’usuari |
nom d’usuari |
Bob |
** Password** |
contrasenya |
contrasenya secreta |
Realm |
territori |
Sfl |