Nastavenie vlastného servera TURN

Jami can be configured to use TURN or STUN servers (RFC5766) to establish a connection between two peers.

Predvolený server TURN je „turn.jami.net“, s používateľským menom „ring“, heslom „ring“ a oblastou „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.

Vstavenie

The CoTURN server is available on most Linux distributions. On Debian, install it with the following command:

apt-get install coturn

Konfigurácia

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).

Vytvorenie používateľov na vašom serveri TURN

Ak chcete vytvoriť používateľov na vašom serveri TURN, použite binárny turnadmin (to môže vyžadovať povolenia superpoužívateľa).

turnadmin -a -u bob -p secretpassword -r sfl

Spustí server TURN

turnserver -c turnserver.conf

Nastavenie Jami na overenie autentifikácie serverom TURN

Môžete nastaviť Jamia na používanie servera TURN z pokročilého oddielu nastavení účtu:

Poľa

Hodnota

Príklad

** server url**

host a port vášho servera

0,0.0.0:10000

** Používateľské meno**

Používateľské meno

Bob

** heslo**

heslo

tajný heslo

vládky

kráľovstvo

SFR