mattermost / mattermost-plugin-calls

https://www.mattermost.com
Other
96 stars 50 forks source link

Can't listen participants #134

Closed joserocha closed 2 years ago

joserocha commented 2 years ago

I can successfully start or join to a call, but none of the participants listen to each other. I tried v0.6.0 and v0.6.1

developer tool log

com.mattermost.calls_1e7361aa1e5244af_bundle.js:2 com.mattermost.calls: found default audio input device to use: Default - Grupo de microfones (Realtek Audio)
com.mattermost.calls_1e7361aa1e5244af_bundle.js:2 com.mattermost.calls: found default audio output device to use: Fones de ouvido / Alto falantes (Realtek Audio)
com.mattermost.calls_1e7361aa1e5244af_bundle.js:2 

[Deprecation] The ScriptProcessorNode is deprecated. Use AudioWorkletNode instead. (https://bit.ly/audio-worklet)
No @ com.mattermost.calls_1e7361aa1e5244af_bundle.js:2
initVAD @ com.mattermost.calls_1e7361aa1e5244af_bundle.js:2
init @ com.mattermost.calls_1e7361aa1e5244af_bundle.js:2
await in init (async)
o @ com.mattermost.calls_1e7361aa1e5244af_bundle.js:2
(anonymous) @ com.mattermost.calls_1e7361aa1e5244af_bundle.js:2
a @ call_button.tsx:56
s @ react-dom.production.min.js:14
c @ react-dom.production.min.js:14
(anonymous) @ react-dom.production.min.js:14
F @ react-dom.production.min.js:15
ot @ react-dom.production.min.js:52
at @ react-dom.production.min.js:51
rt @ react-dom.production.min.js:52
mt @ react-dom.production.min.js:56
x @ react-dom.production.min.js:287
G @ react-dom.production.min.js:19
Jt @ react-dom.production.min.js:70
Zt @ react-dom.production.min.js:69
t.unstable_runWithPriority @ scheduler.production.min.js:19
Wi @ react-dom.production.min.js:122
v @ react-dom.production.min.js:287
Vt @ react-dom.production.min.js:68
com.mattermost.calls_1e7361aa1e5244af_bundle.js:2 com.mattermost.calls: ws open, sending join msg
com.mattermost.calls_1e7361aa1e5244af_bundle.js:2 com.mattermost.calls: vad: noise avg 24 72.12962962962963
com.mattermost.calls_1e7361aa1e5244af_bundle.js:2 com.mattermost.calls: join ack received, initializing connection
com.mattermost.calls_1e7361aa1e5244af_bundle.js:2 com.mattermost.calls: local signal: {"type":"offer","sdp":"v=0\r\no=- 4295836606823703310 2 IN IP4 127.0.0.1\r\ns=-\r\nt=0 0\r\na=group:BUNDLE 0\r\na=extmap-allow-mixed\r\na=msid-semantic: WMS\r\nm=application 9 UDP/DTLS/SCTP webrtc-datachannel\r\nc=IN IP4 0.0.0.0\r\na=ice-ufrag:Mt8B\r\na=ice-pwd:6n/lFECMJ4RPZhcAwrOfgkoZ\r\na=ice-options:trickle\r\na=fingerprint:sha-256 26:A7:88:6A:23:B9:DE:23:EB:8C:3A:D4:C9:0D:24:43:6B:AC:C0:15:37:E9:BD:6D:4D:2E:0E:24:F8:C6:9F:4C\r\na=setup:actpass\r\na=mid:0\r\na=sctp-port:5000\r\na=max-message-size:262144\r\n"}
com.mattermost.calls_1e7361aa1e5244af_bundle.js:2 com.mattermost.calls: local signal: {"type":"candidate","candidate":{"candidate":"candidate:472740626 1 udp 2122260223 172.31.96.1 62004 typ host generation 0 ufrag Mt8B network-id 6","sdpMLineIndex":0,"sdpMid":"0"}}
com.mattermost.calls_1e7361aa1e5244af_bundle.js:2 com.mattermost.calls: local signal: {"type":"candidate","candidate":{"candidate":"candidate:1219214247 1 udp 2122194687 192.168.0.1 62005 typ host generation 0 ufrag Mt8B network-id 7","sdpMLineIndex":0,"sdpMid":"0"}}
com.mattermost.calls_1e7361aa1e5244af_bundle.js:2 com.mattermost.calls: local signal: {"type":"candidate","candidate":{"candidate":"candidate:2167460014 1 udp 2122131711 2804:14c:1c5:21f3:41e3:8ed9:8309:3e6c 62006 typ host generation 0 ufrag Mt8B network-id 2 network-cost 10","sdpMLineIndex":0,"sdpMid":"0"}}
com.mattermost.calls_1e7361aa1e5244af_bundle.js:2 com.mattermost.calls: local signal: {"type":"candidate","candidate":{"candidate":"candidate:1824731810 1 udp 2122066175 2804:14c:1c5:21f3:e5ad:a8d5:2997:56f6 62007 typ host generation 0 ufrag Mt8B network-id 3 network-cost 10","sdpMLineIndex":0,"sdpMid":"0"}}
com.mattermost.calls_1e7361aa1e5244af_bundle.js:2 com.mattermost.calls: local signal: {"type":"candidate","candidate":{"candidate":"candidate:774191610 1 udp 2122000639 2804:14c:1c5:22ed:41e3:8ed9:8309:3e6c 62008 typ host generation 0 ufrag Mt8B network-id 4 network-cost 10","sdpMLineIndex":0,"sdpMid":"0"}}
com.mattermost.calls_1e7361aa1e5244af_bundle.js:2 com.mattermost.calls: local signal: {"type":"candidate","candidate":{"candidate":"candidate:3285638134 1 udp 2121935103 2804:14c:1c5:22ed:e5ad:a8d5:2997:56f6 62009 typ host generation 0 ufrag Mt8B network-id 5 network-cost 10","sdpMLineIndex":0,"sdpMid":"0"}}
com.mattermost.calls_1e7361aa1e5244af_bundle.js:2 com.mattermost.calls: local signal: {"type":"candidate","candidate":{"candidate":"candidate:4285824471 1 udp 2121867007 192.168.0.12 62010 typ host generation 0 ufrag Mt8B network-id 1 network-cost 10","sdpMLineIndex":0,"sdpMid":"0"}}
com.mattermost.calls_1e7361aa1e5244af_bundle.js:2 com.mattermost.calls: local signal: {"type":"candidate","candidate":{"candidate":"candidate:1387171810 1 tcp 1518280447 172.31.96.1 9 typ host tcptype active generation 0 ufrag Mt8B network-id 6","sdpMLineIndex":0,"sdpMid":"0"}}
com.mattermost.calls_1e7361aa1e5244af_bundle.js:2 com.mattermost.calls: local signal: {"type":"candidate","candidate":{"candidate":"candidate:103302999 1 tcp 1518214911 192.168.0.1 9 typ host tcptype active generation 0 ufrag Mt8B network-id 7","sdpMLineIndex":0,"sdpMid":"0"}}
com.mattermost.calls_1e7361aa1e5244af_bundle.js:2 com.mattermost.calls: local signal: {"type":"candidate","candidate":{"candidate":"candidate:3484626014 1 tcp 1518151935 2804:14c:1c5:21f3:41e3:8ed9:8309:3e6c 9 typ host tcptype active generation 0 ufrag Mt8B network-id 2 network-cost 10","sdpMLineIndex":0,"sdpMid":"0"}}
com.mattermost.calls_1e7361aa1e5244af_bundle.js:2 com.mattermost.calls: local signal: {"type":"candidate","candidate":{"candidate":"candidate:574672466 1 tcp 1518086399 2804:14c:1c5:21f3:e5ad:a8d5:2997:56f6 9 typ host tcptype active generation 0 ufrag Mt8B network-id 3 network-cost 10","sdpMLineIndex":0,"sdpMid":"0"}}
com.mattermost.calls_1e7361aa1e5244af_bundle.js:2 com.mattermost.calls: local signal: {"type":"candidate","candidate":{"candidate":"candidate:1621542154 1 tcp 1518020863 2804:14c:1c5:22ed:41e3:8ed9:8309:3e6c 9 typ host tcptype active generation 0 ufrag Mt8B network-id 4 network-cost 10","sdpMLineIndex":0,"sdpMid":"0"}}
com.mattermost.calls_1e7361aa1e5244af_bundle.js:2 com.mattermost.calls: local signal: {"type":"candidate","candidate":{"candidate":"candidate:2371168006 1 tcp 1517955327 2804:14c:1c5:22ed:e5ad:a8d5:2997:56f6 9 typ host tcptype active generation 0 ufrag Mt8B network-id 5 network-cost 10","sdpMLineIndex":0,"sdpMid":"0"}}
com.mattermost.calls_1e7361aa1e5244af_bundle.js:2 com.mattermost.calls: local signal: {"type":"candidate","candidate":{"candidate":"candidate:2985787687 1 tcp 1517887231 192.168.0.12 9 typ host tcptype active generation 0 ufrag Mt8B network-id 1 network-cost 10","sdpMLineIndex":0,"sdpMid":"0"}}
com.mattermost.calls_1e7361aa1e5244af_bundle.js:2 com.mattermost.calls: local signal: {"type":"candidate","candidate":{"candidate":"candidate:157549571 1 udp 1685659391 189.33.64.91 30430 typ srflx raddr 192.168.0.12 rport 62010 generation 0 ufrag Mt8B network-id 1 network-cost 10","sdpMLineIndex":0,"sdpMid":"0"}}
com.mattermost.calls_1e7361aa1e5244af_bundle.js:2 

PUT https://mattermost.dotz.com.br/api/v4/users/y4dienzt138rmm7674z1zkpppe/teams/threads/qtza399zrjyf5bwe4aidj5rrbo/following 404
(anonymous) @ com.mattermost.calls_1e7361aa1e5244af_bundle.js:2
(anonymous) @ com.mattermost.calls_1e7361aa1e5244af_bundle.js:2
(anonymous) @ com.mattermost.calls_1e7361aa1e5244af_bundle.js:2
(anonymous) @ com.mattermost.calls_1e7361aa1e5244af_bundle.js:2
(anonymous) @ index.js:8
i @ com.mattermost.calls_1e7361aa1e5244af_bundle.js:2
(anonymous) @ com.mattermost.calls_1e7361aa1e5244af_bundle.js:2
(anonymous) @ websocket_actions.jsx:572
Me @ websocket_actions.jsx:566
conn.e.conn.onmessage @ websocket_client.tsx:174

and mattermost.log

{"timestamp":"2022-06-28 02:27:14.227 -03:00","level":"debug","msg":"Received HTTP request","caller":"web/handlers.go:156","method":"POST","url":"/api/v4/channels/members/me/view","request_id":"wwroo5waptdaxq48i9t5ats4ia","status_code":"200"}
{"timestamp":"2022-06-28 02:27:14.229 -03:00","level":"debug","msg":"handleJoin","caller":"app/plugin_api.go:934","plugin_id":"com.mattermost.calls","origin":"main.(*Plugin).handleJoin websocket.go:334","userID":"y4dienzt138rmm7674z1zkpppe","connID":"ttqs6gauxibi7g5b1x9dk1bhea","channelID":"1rka8n71jidztyb7g5rbw615hr"}
{"timestamp":"2022-06-28 02:27:15.896 -03:00","level":"debug","msg":"Received HTTP request","caller":"web/handlers.go:156","method":"POST","url":"/api/v4/users/status/ids","request_id":"5qzjzrp83frfd8pz1y57fmgzje","status_code":"200"}
{"timestamp":"2022-06-28 02:27:16.786 -03:00","level":"debug","msg":"Worker received a new candidate job.","caller":"jobs/base_workers.go:50","worker":"ExpiryNotify"}
{"timestamp":"2022-06-28 02:27:17.347 -03:00","level":"info","msg":"SimpleWorker: Job is complete","caller":"jobs/base_workers.go:88","worker":"ExpiryNotify","job_id":"nzp4ycfx4ffub8bgtndmdnyj3r"}
{"timestamp":"2022-06-28 02:27:18.171 -03:00","level":"debug","msg":"got handlerID","caller":"app/plugin_api.go:934","plugin_id":"com.mattermost.calls","origin":"main.(*Plugin).handleJoin websocket.go:403","handlerID":""}
{"timestamp":"2022-06-28 02:27:18.172 -03:00","level":"error","msg":"session not found","caller":"app/plugin_api.go:940","plugin_id":"com.mattermost.calls","origin":"main.(*logger).Error log.go:92","sessionID":"ttqs6gauxibi7g5b1x9dk1bhea","groupID":"","msgType":"2"}
{"timestamp":"2022-06-28 02:27:18.172 -03:00","level":"debug","msg":"candidate!","caller":"app/plugin_api.go:934","plugin_id":"com.mattermost.calls","origin":"main.(*Plugin).handleClientMsg websocket.go:136"}
{"timestamp":"2022-06-28 02:27:18.172 -03:00","level":"debug","msg":"initializing RTC session","caller":"app/plugin_api.go:934","plugin_id":"com.mattermost.calls","origin":"main.(*Plugin).handleJoin.func2 websocket.go:435","userID":"y4dienzt138rmm7674z1zkpppe","connID":"ttqs6gauxibi7g5b1x9dk1bhea","channelID":"1rka8n71jidztyb7g5rbw615hr"}
{"timestamp":"2022-06-28 02:27:18.173 -03:00","level":"error","msg":"session not found","caller":"app/plugin_api.go:940","plugin_id":"com.mattermost.calls","origin":"main.(*logger).Error log.go:92","sessionID":"ttqs6gauxibi7g5b1x9dk1bhea","groupID":"","msgType":"1"}
{"timestamp":"2022-06-28 02:27:18.173 -03:00","level":"debug","msg":"candidate!","caller":"app/plugin_api.go:934","plugin_id":"com.mattermost.calls","origin":"main.(*Plugin).handleClientMsg websocket.go:136"}
{"timestamp":"2022-06-28 02:27:18.173 -03:00","level":"debug","msg":"candidate!","caller":"app/plugin_api.go:934","plugin_id":"com.mattermost.calls","origin":"main.(*Plugin).handleClientMsg websocket.go:136"}
{"timestamp":"2022-06-28 02:27:18.173 -03:00","level":"debug","msg":"candidate!","caller":"app/plugin_api.go:934","plugin_id":"com.mattermost.calls","origin":"main.(*Plugin).handleClientMsg websocket.go:136"}
{"timestamp":"2022-06-28 02:27:18.174 -03:00","level":"debug","msg":"candidate!","caller":"app/plugin_api.go:934","plugin_id":"com.mattermost.calls","origin":"main.(*Plugin).handleClientMsg websocket.go:136"}
{"timestamp":"2022-06-28 02:27:18.174 -03:00","level":"debug","msg":"candidate!","caller":"app/plugin_api.go:934","plugin_id":"com.mattermost.calls","origin":"main.(*Plugin).handleClientMsg websocket.go:136"}
{"timestamp":"2022-06-28 02:27:18.174 -03:00","level":"debug","msg":"candidate!","caller":"app/plugin_api.go:934","plugin_id":"com.mattermost.calls","origin":"main.(*Plugin).handleClientMsg websocket.go:136"}
{"timestamp":"2022-06-28 02:27:18.175 -03:00","level":"debug","msg":"candidate!","caller":"app/plugin_api.go:934","plugin_id":"com.mattermost.calls","origin":"main.(*Plugin).handleClientMsg websocket.go:136"}
{"timestamp":"2022-06-28 02:27:18.175 -03:00","level":"debug","msg":"candidate!","caller":"app/plugin_api.go:934","plugin_id":"com.mattermost.calls","origin":"main.(*Plugin).handleClientMsg websocket.go:136"}
{"timestamp":"2022-06-28 02:27:18.175 -03:00","level":"debug","msg":"candidate!","caller":"app/plugin_api.go:934","plugin_id":"com.mattermost.calls","origin":"main.(*Plugin).handleClientMsg websocket.go:136"}
{"timestamp":"2022-06-28 02:27:18.175 -03:00","level":"debug","msg":"candidate!","caller":"app/plugin_api.go:934","plugin_id":"com.mattermost.calls","origin":"main.(*Plugin).handleClientMsg websocket.go:136"}
{"timestamp":"2022-06-28 02:27:18.176 -03:00","level":"debug","msg":"candidate!","caller":"app/plugin_api.go:934","plugin_id":"com.mattermost.calls","origin":"main.(*Plugin).handleClientMsg websocket.go:136"}
{"timestamp":"2022-06-28 02:27:18.230 -03:00","level":"debug","msg":"candidate!","caller":"app/plugin_api.go:934","plugin_id":"com.mattermost.calls","origin":"main.(*Plugin).handleClientMsg websocket.go:136"}
{"timestamp":"2022-06-28 02:27:18.230 -03:00","level":"debug","msg":"candidate!","caller":"app/plugin_api.go:934","plugin_id":"com.mattermost.calls","origin":"main.(*Plugin).handleClientMsg websocket.go:136"}
{"timestamp":"2022-06-28 02:27:18.249 -03:00","level":"debug","msg":"candidate!","caller":"app/plugin_api.go:934","plugin_id":"com.mattermost.calls","origin":"main.(*Plugin).handleClientMsg websocket.go:136"}
{"timestamp":"2022-06-28 02:27:18.355 -03:00","level":"debug","msg":"not found handler triggered","caller":"web/web.go:63","path":"/api/v4/users/y4dienzt138rmm7674z1zkpppe/teams/threads/gztgk4c7xtbd8q88fh3r7r533a/following","code":404,"ip":"34.123.33.209"}
{"timestamp":"2022-06-28 02:27:28.174 -03:00","level":"error","msg":"timed out signaling","caller":"app/plugin_api.go:940","plugin_id":"com.mattermost.calls","origin":"main.(*logger).Error log.go:92","sessionCfg":"{default 1rka8n71jidztyb7g5rbw615hr y4dienzt138rmm7674z1zkpppe ttqs6gauxibi7g5b1x9dk1bhea}"}
{"timestamp":"2022-06-28 02:27:30.392 -03:00","level":"debug","msg":"Received HTTP request","caller":"web/handlers.go:156","method":"POST","url":"/api/v4/channels/members/me/view","request_id":"ow4z8d6fpj8wudskijrjmrbhfa","status_code":"200"}
streamer45 commented 2 years ago

Hi @joserocha,

sounds like a potential connectivity issue. A couple of questions:

joserocha commented 2 years ago

Hi @streamer45 ,

Tks

streamer45 commented 2 years ago

Thanks @joserocha . I can definitely see some issues from the logs you provided although I would expect this not to happen consistently so there may be additional problems as well. I'll open a ticket to track this.

joserocha commented 2 years ago

Hello @streamer45 ,

I just updated the plugin to the newer version (0.7.0) and it worked very well. Thank you =)