अपने स्वयं के टर्न सर्वर स्थापित करना

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

टर्न सर्वर को लॉन्च करना

turnserver -c turnserver.conf

TURN सर्वर के साथ सत्यापन के लिए Jami को कॉन्फ़िगर करना

आप अपने खाते सेटिंग्स के उन्नत अनुभाग से अपने TURN सर्वर का उपयोग करने के लिए Jami को कॉन्फ़िगर कर सकते हैंः

क्षेत्र

मूल्य

उदाहरण

** सर्वर url**

आपके सर्वर की मेजबानी और पोर्ट

0.0.0.0:10000

उपयोगकर्ता नाम

उपयोगकर्ता नाम

बोब

** पासवर्ड**

पासवर्ड

गुप्त पासवर्ड

राज्य

क्षेत्र

एसएफएल