0

我已经在 Azure 上的虚拟机 (Ubuntu-14.04) 上部署了 kurento java 教程。我能够成功执行/测试教程 1 到教程 3,但是教程 4 和教程 5 不起作用。在 one2one 通话期间,我无法接收对等媒体流。所需的 UDP/TCP 也已打开。

我在WebRtcEndpoint.conf.ini&中提供了所需的 STUN 配置kurento.conf.json

stunServerAddress=74.125.142.127
stunServerPort=19302

"stunServerAddress" : "74.125.142.127",
"stunServerPort" : 19302

我尝试调试,但在日志中找不到任何错误。

Logs : 
2015-12-19 11:35:28,919387 5451 [0x00007ff22dffb700]   debug KurentoWebSocketEventHandler WebSocketEventHandler.cpp:52 sendEvent()  Sending event: {"jsonrpc":"2.0","method":"onEvent","params":{"value":{"data":{"candidate":{"__module__":"kurento","__type__":"IceCandidate","candidate":"candidate:2 1 UDP 1677721855 13.67.48.97 1040 typ srflx raddr 10.146.240.34 rport 59342","sdpMLineIndex":0,"sdpMid":"audio"},"source":"4847259d-b524-4e6f-9d04-edf79b6cd7f5_kurento.MediaPipeline/45185a24-52f0-4cee-a22b-d207a873a50f_kurento.WebRtcEndpoint","tags":[],"timestamp":"1450524928","type":"OnIceCandidate"},"object":"4847259d-b524-4e6f-9d04-edf79b6cd7f5_kurento.MediaPipeline/45185a24-52f0-4cee-a22b-d207a873a50f_kurento.WebRtcEndpoint","type":"OnIceCandidate"}}}
 -> 60129de0-44f3-4de9-abe7-8fc32d08a80e
2015-12-19 11:35:28,919680 5451 [0x00007ff22dffb700]   debug KurentoWebSocketEventHandler WebSocketEventHandler.cpp:52 sendEvent()  Sending event: {"jsonrpc":"2.0","method":"onEvent","params":{"value":{"data":{"candidate":{"__module__":"kurento","__type__":"IceCandidate","candidate":"candidate:2 1 UDP 1677721855 13.67.48.97 1040 typ srflx raddr 10.146.240.34 rport 59342","sdpMLineIndex":1,"sdpMid":"video"},"source":"4847259d-b524-4e6f-9d04-edf79b6cd7f5_kurento.MediaPipeline/45185a24-52f0-4cee-a22b-d207a873a50f_kurento.WebRtcEndpoint","tags":[],"timestamp":"1450524928","type":"OnIceCandidate"},"object":"4847259d-b524-4e6f-9d04-edf79b6cd7f5_kurento.MediaPipeline/45185a24-52f0-4cee-a22b-d207a873a50f_kurento.WebRtcEndpoint","type":"OnIceCandidate"}}}
 -> 60129de0-44f3-4de9-abe7-8fc32d08a80e
2015-12-19 11:35:28,931921 5451 [0x00007ff2177fe700]   debug KurentoWebSocketEventHandler WebSocketEventHandler.cpp:52 sendEvent()  Sending event: {"jsonrpc":"2.0","method":"onEvent","params":{"value":{"data":{"candidate":{"__module__":"kurento","__type__":"IceCandidate","candidate":"candidate:2 1 UDP 1677721855 13.67.48.97 1042 typ srflx raddr 10.146.240.34 rport 37000","sdpMLineIndex":0,"sdpMid":"audio"},"source":"4847259d-b524-4e6f-9d04-edf79b6cd7f5_kurento.MediaPipeline/2bced6d1-e7f8-49da-a37a-e98cf9ce9a5d_kurento.WebRtcEndpoint","tags":[],"timestamp":"1450524928","type":"OnIceCandidate"},"object":"4847259d-b524-4e6f-9d04-edf79b6cd7f5_kurento.MediaPipeline/2bced6d1-e7f8-49da-a37a-e98cf9ce9a5d_kurento.WebRtcEndpoint","type":"OnIceCandidate"}}}
 -> 60129de0-44f3-4de9-abe7-8fc32d08a80e
2015-12-19 11:35:28,932150 5451 [0x00007ff2177fe700]   debug KurentoWebSocketEventHandler WebSocketEventHandler.cpp:52 sendEvent()  Sending event: {"jsonrpc":"2.0","method":"onEvent","params":{"value":{"data":{"candidate":{"__module__":"kurento","__type__":"IceCandidate","candidate":"candidate:2 1 UDP 1677721855 13.67.48.97 1042 typ srflx raddr 10.146.240.34 rport 37000","sdpMLineIndex":1,"sdpMid":"video"},"source":"4847259d-b524-4e6f-9d04-edf79b6cd7f5_kurento.MediaPipeline/2bced6d1-e7f8-49da-a37a-e98cf9ce9a5d_kurento.WebRtcEndpoint","tags":[],"timestamp":"1450524928","type":"OnIceCandidate"},"object":"4847259d-b524-4e6f-9d04-edf79b6cd7f5_kurento.MediaPipeline/2bced6d1-e7f8-49da-a37a-e98cf9ce9a5d_kurento.WebRtcEndpoint","type":"OnIceCandidate"}}}
 -> 60129de0-44f3-4de9-abe7-8fc32d08a80e
2015-12-19 11:35:43,950679 5451 [0x00007ff24a7fc700]    info KurentoWebSocketTransport WebSocketTransport.cpp:257 keepAliveSessions()  Keep alive 60129de0-44f3-4de9-abe7-8fc32d08a80e
2015-12-19 11:36:43,951659 5451 [0x00007ff24a7fc700]    info KurentoWebSocketTransport WebSocketTransport.cpp:257 keepAliveSessions()  Keep alive 60129de0-44f3-4de9-abe7-8fc32d08a80e
2015-12-19 11:37:43,948660 5451 [0x00007ff25451f700]   debug KurentoMediaSet           MediaSet.cpp:131 doGarbageCollection()  Running garbage collector
2015-12-19 11:37:43,952370 5451 [0x00007ff24a7fc700]    info KurentoWebSocketTransport WebSocketTransport.cpp:257 keepAliveSessions()  Keep alive 60129de0-44f3-4de9-abe7-8fc32d08a80e
2015-12-19 11:38:43,952796 5451 [0x00007ff24a7fc700]    info KurentoWebSocketTransport WebSocketTransport.cpp:257 keepAliveSessions()  Keep alive 60129de0-44f3-4de9-abe7-8fc32d08a80e
4

1 回答 1

2

这已在项目的邮件列表中交叉发布和回答。

长话短说,似乎 Azure 只允许打开 150 个端口(根据海报提供的信息),因此需要配置 Kurento 以限制使用的端口范围。这可以通过修改文件内容来实现/etc/kurento/modules/kurento/BaseRtpEndpoint.conf.ini

于 2015-12-23T14:19:12.993 回答