להגדיר את שרת ה-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

הגדרת ג’מי כדי לאותנטיזציה עם השרת TURN

אתה יכול להגדיר את ג’מי להשתמש בשורר TURN שלך מהחלק המתקדם של הגדרות החשבון שלך:

שדה

ערך

דוגמה

רשת השרתים url

מארח ומעצר השרת שלך

0.0.0.0:10000

שם משתמש

שם המשתמש

בוב

סיסמה

סיסמה

סיסמה סודית

ממלכה

ממלכה

ספ“ל