Ustawienie własnego serwera TURN

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

Domyślny serwer TURN to „turn.jami.net”, z nazwą użytkownika „ring”, hasłem „ring” i królestwem „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.

Instalacja

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

apt-get install coturn

Konfiguracja

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

Tworzenie użytkowników na serwerze TURN

Aby utworzyć użytkowników na serwerze TURN, użyj turnadmin binarnego (może to wymagać uprawnień superużytkownika).

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

Uruchomienie serwera TURN

turnserver -c turnserver.conf

Konfiguracja Jami do uwierzytelniania serwerem TURN

Możesz skonfigurować Jami do korzystania z serwera TURN z zaawansowanej sekcji ustawień konta:

Połowa

Wartość

Przykład

** url serwera**

host i port serwera

0,0.0.0:10000

nazwa użytkownika

nazwę użytkownika

Bob

** Hasło**

Hasło

sekretny hasło

wiatryna

obszary

Sfl