我有这个使用SIP进行语音传输的聊天系统(没有手机,只有浏览器到同一服务器的浏览器)。 声音在两端都很好,但是星号会发出两次警告(可能每个客户一个):
[Mar 11 09:01:27] WARNING[614][C-00000002]: res_srtp.c:407 ast_srtp_unprotect: SRTP unprotect failed with: authentication failure 10
[Mar 11 09:01:33] WARNING[614][C-00000002]: res_srtp.c:407 ast_srtp_unprotect: SRTP unprotect failed with: authentication failure 10
生成的密钥:
./usr/src/asterisk-*/contrib/scripts/ast_tls_cert -C IpAddress -O "Company" -d /etc/asterisk/keys
sip.conf
档案:
[general]
udpbindaddr=0.0.0.0:5060
realm=IpAddress
transport=udp,ws,wss
videosupport=no
icesupport=yes
allowguest=no
allwaysreject=yes
rtptimeout=30
我的同伴被设置为sip.conf
:
[000001]
host=dynamic
secret=000001
context=from-internal
type=friend
encryption=yes
avpf=yes
force_avp=yes
icesupport=yes
directmedia=no
disallow=all
allow=ulaw,alaw,gsm,all
dtlsenable=yes
dtlsverify=no
dtlscertfile=/etc/asterisk/keys/asterisk.pem
dtlscafile=/etc/asterisk/keys/ca.crt
dtlssetup=actpass
我正在为客户端使用sipML5。清除警告的任何见解?