إعداد خادم TURN الخاص بك
Jami can be configured to use TURN or STUN servers (RFC5766) to establish a connection between two peers.
الخادم الافتراضي لـ TURN هو "turn.jami.net"، مع اسم المستخدم "الحلقة" وكلمة المرور "الحلقة" و "الحلقة" في المجال.
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،0000 |
اسم المستخدم |
اسم المستخدم |
بوب |
** كلمة المرور** |
كلمة المرور |
كلمة مرور سرية |
المملكة |
المملكة |
الـ (أ) |