我正在创建一个基于WebRTC和Asterisk的项目。我强迫使用HTTPS,WSS,SRTP& DTLS,因为新浏览器不支持非安全连接等...
IP' S:
信令阶段是正确的,对等体很好地连接到服务器。 目的是从Asterisk服务器收听Playback或Saydigits。当我运行呼叫时,我看到一切顺利(SIP和RTP),但浏览器中没有声音(音量增大)。
我在Google上搜索了论坛,但没有结果......是SRTP解密问题吗?
之前有人试过吗?
SIP.CONF
[1060]
type=friend
username=1060
host=dynamic
secret=lookrtctest
encryption=yes
avpf=yes
icesupport=yes
context=outgoing
directmedia=no
transport=ws,wss
force_avp=yes
disallow=all
allow=ulaw
allow=alaw
dtlsenable=yes
dtlsverify=fingerprint
dtlscertfile=/etc/asterisk/keys/asterisk.pem
dtlscafile=/etc/asterisk/keys/ca.crt
dtlssetup=actpass
nat=yes,force_rport
的extensions.conf:
[outgoing]
exten => _X.,1,Noop(*** Start Call *** )
exten => _X.,n,Answer()
exten => _X.,n,Playback(vm-from)
exten => _X.,n,SayDigits(123456)
exten => _X.,n,Hangup()
RTP.conf:
[general]
rtpstart=10000
rtpend=20000
icesupport=yes
stunaddr=stun.l.google.com:19302
的http.conf:
[general]
enabled=yes
bindaddr=0.0.0.0
tlsenable=yes
tlsbindaddr=0.0.0.0:8089
tlsprivatekey=/etc/asterisk/keys/asterisk.pem
tlscertfile=/etc/asterisk/keys/asterisk.pem