راه اندازی سرور 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 استفاده کنید (این ممکن است نیاز به مجوزهای ابرکاربری داشته باشد).

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

راه اندازی سرور TURN

turnserver -c turnserver.conf

تنظیم Jami برای تأیید هویت با سرور TURN

شما می توانید Jami را برای استفاده از سرور TURN خود از بخش پیشرفته تنظیمات حساب خود تنظیم کنید:

میدان

ارزش

نمونه

** سرور url**

میزبان و پورت سرور شما

0.0.0.0:10000

نام کاربری

نام کاربری

باب

** رمز عبور**

رمز عبور

رمز عبور مخفی

** قلمرو**

قلمرو

sfl