设置自己的TURN服务器

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

默认的TURN服务器是」turn.jami.net」,使用者名为」ring」,密码」ring」,和领域」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.

装备

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

apt-get install coturn

配置

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

在您的TURN服务器上创建用户

为了在您的TURN服务器上创建用户,请使用二进制 (这可能需要超级用户权限).

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

启动TURN服务器

turnserver -c turnserver.conf

配置Jami以使用TURN服务器进行验证

您可以从帐户设置的高级部分设置Jami使用您的TURN服务器:

领域

价值

举例

服务器URL

服务器的主机和端口

其他类型

用户名

用户名

密码

密码

密码

,,,,,,

领域

其他