无法构建'RTCPeerConnection':不可约束约束IceTransports

问题描述:

我试图在本地系统上设置RestComm Web SDK演示应用程序,我只是想为音频/视频,聊天,IVR等创建应用程序(RestComm为我提供了完美的解决方案为我的需要)。现在我已经在本地系统上设置了RestComm Web SDK,并且每当我尝试拨打电话时,它都会抛出:WebRTCommClient:call():catched exception:NotSupportedError:无法构建'RTCPeerConnection':不可访问的约束IceTransports在浏览器控制台上。无法构建'RTCPeerConnection':不可约束约束IceTransports

我的WebRTC confrigration是如下:

// setup WebRTClient 
      wrtcConfiguration = { 
       communicationMode: WebRTCommClient.prototype.SIP, 
       sip: { 
        sipUserAgent: 'TelScale RestComm Web Client 1.0.0 BETA4', 
        sipRegisterMode: register, 
        sipOutboundProxy: parameters['registrar'], 
        sipDomain: parameters['domain'], 
        sipDisplayName: parameters['username'], 
        sipUserName: parameters['username'], 
        sipLogin: parameters['username'], 
        sipPassword: parameters['password'], 
       }, 
       RTCPeerConnection: { 
        iceServers: undefined, 
        stunServer: 'stun.l.google.com:19302', 
        turnServer: undefined, 
        turnLogin: undefined, 
        turnPassword: undefined, 
       } 
      }; 

虽然我可以用奥林巴斯没有在Chrome浏览器中的任何问题。我坚持这个例外,任何建议将不胜感激。

我认为这里的问题是,您正在使用的演示应用程序内的Webrtcomm库版本已过时,并且不包含最新Chrome版本的修补程序。所以,请你的仓库内更换样品/您好世界/脚本/ WebRTComm.js,具有:

https://github.com/RestComm/webrtcomm/blob/master/build/WebRTComm.js

这应该解决您的问题。

此致敬礼, 安东尼斯Tsakiridis