Thiết lập máy chủ TURN của riêng bạn

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

Máy chủ TURN mặc định là "turn.jami.net", với tên người dùng "ring", mật khẩu "ring" và realm "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.

Thiết lập

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

apt-get install coturn

Thiết lập

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

Tạo người dùng trên máy chủ TURN của bạn

Để tạo người dùng trên máy chủ TURN của bạn, sử dụng turnadmin nhị phân (thì có thể yêu cầu quyền của người dùng siêu).

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

Thỏa thuận máy chủ TURN

turnserver -c turnserver.conf

Thiết lập Jami để xác thực với máy chủ TURN

Bạn có thể cấu hình Jami để sử dụng máy chủ TURN của bạn từ phần nâng cao của cài đặt tài khoản của bạn:

Vùng

Giá trị

Ví dụ:

** URL máy chủ**

host và cổng của máy chủ của bạn

0.0.0.0:10000

** Tên người dùng**

Username

Bob

** mật khẩu**

mật khẩu

mật khẩu bí mật

trung địa

vương quốc

Sphl