我已经建立了基于Asterisk和sipml5的WebRTC系统,可以在智能手机(Android)上进行音频呼叫,但是启用视频后,呼叫者可以获取被呼叫者的视频大约5秒钟,而被呼叫者无法获取视频。星号需要任何设置吗?
sip.conf:
[2004]
type=friend
defaultuser=2004
username=2004
host=dynamic
secret=pass
encryption=yes
avpf=yes
icesupport=yes
context=rtc-01-dev.demo.net
directmedia=no
transport=udp,ws,wss
force_avp=yes
dtlsenable=yes
dtlsverify=no
dtlscertfile=/etc/asterisk/keys/asterisk.pem
dtlsprivatekey=/etc/asterisk/keys/asterisk.pem
dtlssetup=actpass
allow=vp8,h264
nat=yes
[2005]
type=friend
defaultuser=2005
username=2005
host=dynamic
secret=pass
encryption=yes
avpf=yes
icesupport=yes
context=rtc-01-dev.demo.net
directmedia=no
transport=udp,ws,wss
force_avp=yes
dtlsenable=yes
dtlsverify=no
dtlscertfile=/etc/asterisk/keys/asterisk.pem
dtlsprivatekey=/etc/asterisk/keys/asterisk.pem
dtlssetup=actpass
allow=vp8,h264
nat=yes
extensions.conf:
[rtc-01-dev.demo.net]
exten => _200Z,1,Dial(SIP/${EXTEN},30)
exten => _200Z,2,Congestion
exten => _200Z,102,Busy
答案 0 :(得分:0)
星号对您的视频不执行任何操作,它只是发送接收到的数据包。
星号中没有MCU功能
您应确保所有应用中的视频编解码器和分辨率均相同。