Intel® Collaboration Suite for WebRTC
Community support and discussions on the Intel® Collaboration Suite for WebRTC (Intel® CS for WebRTC).
Announcements
Intel Customer Support will be observing the Martin Luther King holiday on Monday, Jan. 17, and will return on Tues. Jan. 18.
For the latest information on Intel’s response to the Log4j/Log4Shell vulnerability, please see Intel-SA-00646
1135 Discussions

turnserver搭起来之后, SDK哪里可以配置

Siping_Q_
Beginner
481 Views

目前SDK跑起来之后, 只能在局域网使用。 于是我用coturn搭了一个turnserver, 请问一下SDK里面要使用自己搭建的turnserver要在哪个文件里面进行设置。

0 Kudos
5 Replies
Jianjun_Z_Intel
Employee
481 Views

Hi Siping,

你正在使用的是会议模式还是P2P模式?以及哪种SDK?

Siping_Q_
Beginner
481 Views

是的, 我用的是p2p模式, 客户端用的是Intel CS for WebRTC Client SDK for Android使用p2p模式, 服务端SDK用的是Intel CS for WebRTC Server SDK里面的Conference Server, 根据文档中的引导把conference server搭起来了, 并且把peer server也搭建了。局域网内可以p2p已经可以进行视频通话。

He_Z_Intel
Employee
481 Views

PeerClientConfiguration.setIceServers.

Siping_Q_
Beginner
481 Views
删除内容, 看更新的reply
Siping_Q_
Beginner
481 Views
服务端报401错误: check_stun_auth: Cannot find credentials of user <shequguangli>; 麻烦帮忙看看是什么问题? 
客户端这边的配置是否正确?

android端设置
iceServers.add(new IceServer("stun:xxxx:3478"));
iceServers.add(new IceServer("stun:stun.xxxx:3478"));
iceServers.add(new IceServer("turn:xxxx:3478?transport=tcp", "shequguangli", "12369874"));
iceServers.add(new IceServer("turn:xxxx:3478?transport=udp", "shequguangli", "12369874"));

以下为coturn的配置文件

listening-device=eth0
listening-port=3478
tls-listening-port=5349
alt-listening-port=3479
listening-ip= xxxxxxxxxxxx #我的服务器ip
relay-device=eth0
relay-ip=xxxxxxxxxxx #我的服务器ip
relay-threads=10
min-port=59000
max-port=65000	
verbose
fingerprint
lt-cred-mech
server-name=shequ
user=shequguangli:12369874
userdb=/var/db/turndb
realm=shequ
cert=/etc/turn_server_cert.pem
pkey=/etc/turn_server_pkey.pem
no-stdout-log
log-file=/var/tmp/turn.log
simple-log
no-loopback-peers
pidfile="/var/run/turnserver.pid"
mobility
no-cli
no-tlsv1
no-tlsv1_1

 

Reply