자신의 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 서버로 인증하도록 구성
자미를 계정 설정의 고급 섹션에서 TURN 서버를 사용할 수 있도록 구성할 수 있습니다:
현장 |
가치 |
예제 |
---|---|---|
** 서버 URL** |
서버의 호스트 및 포트 |
0.0.0.0:10000 |
** 사용자 이름** |
사용자 이름 |
밥 |
** 비밀번호** |
비밀번호 |
비밀 비밀 비밀번호 |
현지 |
영역 |
Sfl |