标签: mod-verto

WebRTC + IOS + Freeswitch:听不到音频

我正在尝试在IOS 上实现mod_verto(从iPhone调用到桌面).我正在使用Google的libjingle库用于RTC端,使用这个优秀的教程完成并运行.

  • 从我的iPhone拨打电话时,我使用Verto Communicator(在本地计算机上下载并运行)在桌面浏览器上接听电话.
  • 在iPhone方面,我可以听到桌面上的音频,但桌面方面没有任何声音.
  • 如果我使用2个浏览器窗口(使用Verto Communicator)进行呼叫,则一切正常.

  • 完全披露,我使用ws://不安全的websocket连接到FreeSwitch

这是我的JSONRPC日志:


发送登录请求:

{"jsonrpc":"2.0","method":"login","id":1,"params":{"login":"1000@MY-IP-ADDRESS","loginParams":{},"userVariables":{},"passwd":"1234","sessid":"53FB0781-B586-4CDA-98C6-558680663B46"}}
Run Code Online (Sandbox Code Playgroud)

登录响应:

{"jsonrpc":"2.0","id":1,"result":{"message":"logged in","sessid":"53FB0781-B586-4CDA-98C6-558680663B46"}}
Run Code Online (Sandbox Code Playgroud)

verto.invite(包括iPhone sdp):

{"jsonrpc":"2.0","method":"verto.invite","id":2,"params":{"dialogParams":{"remote_caller_id_number":"1008","useVideo":false,"useMic":"any","useStereo":false,"tag":"webcam","login":"1000@159.203.164.7","useCamera":"any","videoParams":{"minFrameRate":30,"minWidth":"1280","minHeight":"720"},"destination_number":"1008","screenShare":false,"caller_id_name":"FreeSWITCH User","caller_id_number":"1000","callID":"0CD433FC-A909-4DF2-BC46-0A4A94E9B800","remote_caller_id_name":"Outbound Call","useSpeak":"any"},"sessid":"53FB0781-B586-4CDA-98C6-558680663B46","sdp":"v=0\r\no=- 8564086442942257834 2 IN IP4 127.0.0.1\r\ns=-\r\nt=0 0\r\na=group:BUNDLE audio video\r\na=msid-semantic: WMS\r\nm=audio 58157 UDP\/TLS\/RTP\/SAVPF 111 103 104 9 102 0 8 106 105 13 127 126\r\nc=IN IP4 82.166.93.197\r\na=rtcp:52576 IN IP4 82.166.93.197\r\na=candidate:3168280865 1 udp 2122260223 11.0.0.244 58157 typ host generation 0\r\na=candidate:1260196625 1 udp 2122194687 10.134.172.254 58951 typ host generation 0\r\na=candidate:3168280865 2 udp …
Run Code Online (Sandbox Code Playgroud)

voip freeswitch ios webrtc mod-verto

10
推荐指数
1
解决办法
2246
查看次数

如何修复 Freeswitch Verto 中的“无法读取未定义的属性‘srcObject’”

我正在尝试让 verto 在 Chrome 57.0.2987.133(64 位)中工作。

在关注https://dopensource.com/2017/01/21/setting-up-freeswitch-webrtc-functionality/ 之后,我能够让 webrtc/verto 在服务器上工作。我能够获得演示应用程序(在 verto 存储库中)来连接和拨打电话。

我按照http://evoluxbr.github.io/verto-docs/tut/making-a-call.html在我的最后设置了 verto,但我得到了(Uncaught TypeError: Cannot read property 'srcObject' of undefined and Uncaught TypeError : 无法在 Chrome 控制台中读取 undefined 的属性“sinkId”。见下文:

Uncaught TypeError: Cannot read property 'srcObject' of undefined
    at FSRTCattachMediaStream (jquery.FSRTC.js:236)
    at onRemoteStream (jquery.FSRTC.js:255)
    at Object.self.peer.FSRTCPeerConnection.onRemoteStream (jquery.FSRTC.js:593)
    at RTCPeerConnection.FSRTCPeerConnection.peer.onaddstream (jquery.FSRTC.js:737)
Uncaught TypeError: Cannot read property 'sinkId' of undefined
    at $.verto.dialog.setAudioPlaybackDevice (jquery.verto.js:2144)
    at jquery.verto.js:2214
Run Code Online (Sandbox Code Playgroud)

https://pastebin.com/j4GrER0Q。我的脚本导入看起来像https://pastebin.com/H55piU1r

将不胜感激

freeswitch webrtc mod-verto

2
推荐指数
1
解决办法
1819
查看次数

标签 统计

freeswitch ×2

mod-verto ×2

webrtc ×2

ios ×1

voip ×1