启用WebRTC的星号13配置是什么?

启用WebRTC的星号13配置是什么?,webrtc,asterisk,sipml5,Webrtc,Asterisk,Sipml5,我想设置asterisk 13,在本地机器上运行ubuntu 16.04以启用WebRTC,我正在firefox上进行测试 我已成功将sipml5客户端连接到asterisk,但在模拟通话时,显示通话正在进行中 http已启用并绑定到端口8088 这是sip.conf: [web_rtc] context=default host=dynamic secret=abc101 type=friend transport=udp,ws,wss,tcp encryption=yes avpf=yes

我想设置asterisk 13,在本地机器上运行ubuntu 16.04以启用WebRTC,我正在firefox上进行测试

我已成功将sipml5客户端连接到asterisk,但在模拟通话时,显示通话正在进行中

http已启用并绑定到端口8088

这是sip.conf

[web_rtc]
context=default
host=dynamic
secret=abc101
type=friend
transport=udp,ws,wss,tcp
encryption=yes
avpf=yes
force_avp=yes
icesupport=yes
directmedia=no
disallow=all
allow=opus
allow=ulaw
dtlsenable=yes
dtlsverify=fingerprint
dtlscertfile=/etc/asterisk/ast.pem
dtlscafile=/etc/asterisk/ast.pem
dtlssetup=actpass/
rtcp_mux=yes
[web_rtc]
exten => 100,1,Answer()
exten => n,Playback(hello-world)
exten => n,Hangup()
这是extension.conf

[web_rtc]
context=default
host=dynamic
secret=abc101
type=friend
transport=udp,ws,wss,tcp
encryption=yes
avpf=yes
force_avp=yes
icesupport=yes
directmedia=no
disallow=all
allow=opus
allow=ulaw
dtlsenable=yes
dtlsverify=fingerprint
dtlscertfile=/etc/asterisk/ast.pem
dtlscafile=/etc/asterisk/ast.pem
dtlssetup=actpass/
rtcp_mux=yes
[web_rtc]
exten => 100,1,Answer()
exten => n,Playback(hello-world)
exten => n,Hangup()

我在星号13上的Ubuntu18.04上测试了sipml5,效果很好。我建议通过添加以下行向rtp.conf文件(/etc/asterisk/rtp.conf)中添加一个stun服务器:

stunaddr=stun.l.google.com:19302
然后,在现场演示中,在专家模式部分添加
[{url:'stun:stun.l.google.com:19302'}]

无论如何,我尝试了sipml5,但在将其与Asterisk集成时遇到了一些问题(我在静音或暂停调用时遇到了问题),所以我尝试了其他库,最后决定使用sip.js(),我推荐使用

希望能有帮助

  • 我编辑以添加我在JS脚本上使用的sipml5客户端堆栈配置:
sipStack=新的SIPml.Stack({
领域:'example.com',
impi:“sip_用户”,
啜:啜_user@example.com:端口',
密码:“超级密码”,
websocket\u代理\u url:'wss://example.com:port/ws',
出站\u代理\u url:null,
ice_服务器:“[{url:'stun:stun.l.google.com:19302'}]”,
启用\u rtcweb\u断路器:true,
启用\u early\u ims:true,
启用\u媒体\u流\u缓存:true,
sip_头:[
{name:'
在此处输入代码
User-Agent',值:'IM-client/OMA1.0 sipML5-v1.2016.03.04'},
{名称:'组织',值:'我的公司'}
],
事件\u侦听器:{events:'*',侦听器:eventsListener}
});