jitsi / jitsi-meet

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
https://jitsi.org/meet
Apache License 2.0
23.12k stars 6.72k forks source link

Audio call disconnect problem in IOS Mobile SDK and Jitsi Meet(IOS)  app available in app store #9619

Closed kirtirc closed 3 years ago

kirtirc commented 3 years ago

Hello we are using latest Jitsti mobile SDK version 3.7.0 and facing call disconnection problem when UserA start audio call then User B Receive call then UserA changed Sound mode Phone mode (speaker to earpiece ) within 3-4 minute UserA disconnected and showing Rejoin popup.

UserA and UserB using Jitsi Mobile sample app or Jitsi Meet(IOS)  app on app store This problem reproducible in Jitsi meet app available in app store and IOS Mobile SDK.

Note :- You have to put your phone near your ear to listen in earpiece to reproduce this problem.

I think it is related to proximity sensor problem ? Please help me to resolve this problem. Thanks in advance.

saghul commented 3 years ago

Can you please share some logs? The only thing we do with the proximity sensor is turn on / off the display.

kirtirc commented 3 years ago

Thanks for quick reply attached log from sample app of SDK version 3.7.0

2021-07-28 18:13:19.138716+0530 jitsi-meet[48496:8896334] [JitsiMeetSDK] [modules/xmpp/JingleSessionPC.js] JingleSessionPC[p2p=true,initiator=false,sid=22f3bdb1f4de] received remote max frame height: 360 2021-07-28 18:13:19.138760+0530 jitsi-meet[48496:8896334] [JitsiMeetSDK] [modules/xmpp/JingleSessionPC.js] JingleSessionPC[p2p=false,initiator=false,sid=73b3dcs2nvj6n] setSenderVideoConstraint: 360 2021-07-28 18:13:19.138782+0530 jitsi-meet[48496:8896334] [JitsiMeetSDK] [modules/xmpp/JingleSessionPC.js] Queued make video active, audio active task... 2021-07-28 18:13:19.138802+0530 jitsi-meet[48496:8896334] [JitsiMeetSDK] [modules/xmpp/JingleSessionPC.js] JingleSessionPC[p2p=true,initiator=false,sid=22f3bdb1f4de] setSenderVideoConstraint: 360 2021-07-28 18:13:19.142392+0530 jitsi-meet[48496:8896334] [JitsiMeetSDK] [modules/xmpp/JingleSessionPC.js] JingleSessionPC[p2p=true,initiator=false,sid=22f3bdb1f4de] queued "content-modify" task(video senders="both") 2021-07-28 18:13:19.142516+0530 jitsi-meet[48496:8896558] [JitsiMeetSDK] [modules/xmpp/JingleSessionPC.js] Make video active, audio active task done! 2021-07-28 18:13:19.142567+0530 jitsi-meet[48496:8896836] [JitsiMeetSDK] [modules/xmpp/JingleSessionPC.js] "content-modify" task(video senders="both") done. PC = JingleSessionPC[p2p=true,initiator=false,sid=22f3bdb1f4de] 2021-07-28 18:14:38.723555+0530 jitsi-meet[48496:8897362] [JitsiMeetSDK] [modules/statistics/AudioOutputProblemDetector.js] A potential problem is detected with the audio output for participant 166121ed, local audio levels: [null,null], remote audio levels: undefined 2021-07-28 18:14:46.206824+0530 jitsi-meet[48496:8897124] [JitsiMeetSDK] [features/video-quality] Video quality level for thumbnail height: 712, is: 360, override: false, max full res N: 2 2021-07-28 18:14:46.206933+0530 jitsi-meet[48496:8897124] [JitsiMeetSDK] [modules/qualitycontrol/ReceiveVideoController.js] Updating receive maxFrameHeight: 360 2021-07-28 18:14:46.216197+0530 jitsi-meet[48496:8896558] [JitsiMeetSDK] [modules/RTC/BridgeChannel.js] Sending ReceiverVideoConstraints with {"constraints":{"166121ed":{"maxHeight":360}},"defaultConstraints":{"maxHeight":180},"lastN":0,"onStageEndpoints":["166121ed"],"selectedEndpoints":[]} 2021-07-28 18:14:46.216287+0530 jitsi-meet[48496:8896558] [JitsiMeetSDK] [modules/xmpp/JingleSessionPC.js] JingleSessionPC[p2p=true,initiator=false,sid=22f3bdb1f4de] setReceiverVideoConstraint - max frame height: 360 2021-07-28 18:14:46.216332+0530 jitsi-meet[48496:8896558] [JitsiMeetSDK] [modules/xmpp/JingleSessionPC.js] JingleSessionPC[p2p=true,initiator=false,sid=22f3bdb1f4de] sending content-modify, video senders: none, max frame height: 360 2021-07-28 18:14:46.236214+0530 jitsi-meet[48496:8896558] [JitsiMeetSDK] [features/video-quality] setReceiverVideoConstraint: 360 2021-07-28 18:16:46.492300+0530 jitsi-meet[48496:8897362] [JitsiMeetSDK] [modules/RTC/BridgeChannel.js] Channel closed by server 2021-07-28 18:16:46.492682+0530 jitsi-meet[48496:8896358] [JitsiMeetSDK] [modules/RTC/BridgeChannel.js] Channel closed: 1001 Stream end encountered 2021-07-28 18:16:46.555824+0530 jitsi-meet[48496:8897362] [JitsiMeetSDK] [modules/xmpp/JingleSessionPC.js] (TIME) ICE disconnected P2P? true: 1627476406553 2021-07-28 18:16:48.067758+0530 jitsi-meet[48496:8897124] [JitsiMeetSDK] SocketRocket: In debug mode. Allowing connection to any root cert 2021-07-28 18:16:48.083579+0530 jitsi-meet[48496:8898096] [JitsiMeetSDK] [modules/xmpp/xmpp.js] (TIME) Strophe connfail[item-not-found]: 1627476408068 2021-07-28 18:16:48.083649+0530 jitsi-meet[48496:8898096] [JitsiMeetSDK] [modules/xmpp/strophe.ping.js] Ping interval cleared 2021-07-28 18:16:48.083674+0530 jitsi-meet[48496:8898096] [JitsiMeetSDK] [modules/xmpp/xmpp.js] (TIME) Strophe disconnected[item-not-found]: 1627476408070 2021-07-28 18:16:48.083696+0530 jitsi-meet[48496:8898096] [JitsiMeetSDK] [modules/statistics/statistics.js] {"type":"operational","action":"connection.failed","attributes":{"error_type":"connection.otherError","error_message":"item-not-found","shard_changed":false,"suspend_time":109385,"time_since_last_success":3}} 2021-07-28 18:16:48.092572+0530 jitsi-meet[48496:8896358] [connection] nw_endpoint_handler_set_adaptive_read_handler [C12.1 146.56.49.101:443 ready socket-flow (satisfied (Path is satisfied), viable, interface: en0, ipv4, dns)] unregister notification for read_timeout failed 2021-07-28 18:16:48.092635+0530 jitsi-meet[48496:8896358] [connection] nw_endpoint_handler_set_adaptive_write_handler [C12.1 146.56.49.101:443 ready socket-flow (satisfied (Path is satisfied), viable, interface: en0, ipv4, dns)] unregister notification for write_timeout failed 2021-07-28 18:16:48.124219+0530 jitsi-meet[48496:8896358] [JitsiMeetSDK] [features/overlay] The conference will be reloaded after 3 seconds. 2021-07-28 18:16:48.325157+0530 jitsi-meet[48496:8898096] [JitsiMeetSDK] [features/base/lastn] There is no active conference, not updating last N 2021-07-28 18:16:48.745270+0530 jitsi-meet[48496:8898499] [JitsiMeetSDK] [features/base/lastn] There is no active conference, not updating last N 2021-07-28 18:16:48.750548+0530 jitsi-meet[48496:8896121] Participant left: 166121ed 2021-07-28 18:16:48.750695+0530 jitsi-meet[48496:8896836] [JitsiMeetSDK] [modules/e2eping/e2eping.js] Stopping e2eping 2021-07-28 18:16:48.758109+0530 jitsi-meet[48496:8896358] [JitsiMeetSDK] [modules/xmpp/JingleSessionPC.js] Clearing modificationQueue on JingleSessionPC[p2p=false,initiator=false,sid=73b3dcs2nvj6n]... 2021-07-28 18:16:48.758167+0530 jitsi-meet[48496:8896358] [JitsiMeetSDK] [modules/xmpp/JingleSessionPC.js] Queued PC close task on JingleSessionPC[p2p=false,initiator=false,sid=73b3dcs2nvj6n]... 2021-07-28 18:16:48.758190+0530 jitsi-meet[48496:8896358] [JitsiMeetSDK] [modules/xmpp/JingleSessionPC.js] Shutdown modificationQueue on JingleSessionPC[p2p=false,initiator=false,sid=73b3dcs2nvj6n]! 2021-07-28 18:16:48.764063+0530 jitsi-meet[48496:8896358] [JitsiMeetSDK] [modules/xmpp/JingleSessionPC.js] Clearing modificationQueue on JingleSessionPC[p2p=true,initiator=false,sid=22f3bdb1f4de]... 2021-07-28 18:16:48.764097+0530 jitsi-meet[48496:8896358] [JitsiMeetSDK] [modules/xmpp/JingleSessionPC.js] Queued PC close task on JingleSessionPC[p2p=true,initiator=false,sid=22f3bdb1f4de]... 2021-07-28 18:16:48.764118+0530 jitsi-meet[48496:8896358] [JitsiMeetSDK] [modules/xmpp/JingleSessionPC.js] Shutdown modificationQueue on JingleSessionPC[p2p=true,initiator=false,sid=22f3bdb1f4de]! 2021-07-28 18:16:48.770298+0530 jitsi-meet[48496:8896358] [JitsiMeetSDK] [modules/xmpp/ChatRoom.js] do leave 999aaa@conference.meet.jit.si/1f265da8 2021-07-28 18:16:48.798200+0530 jitsi-meet[48496:8896121] [/Users/Mac/Downloads/jitsi-meet-ios-sdk/ios/app/src/ViewController.m:47] JitsiMeetViewDelegate CONFERENCE_TERMINATED { error = "connection.otherError"; url = "https://meet.jit.si/999aaa"; }

saghul commented 3 years ago

Hum, all I see there is a connectivity problem happening. Can you please provide step by step instructions to reproduce this?

kirtirc commented 3 years ago

Please download Jitsi Meet (IOS) app from App Store in 2 IOS Device Step 1 : Then toggle on Voice (make audio call)
Step 2 : enter room name and click create/join button Step 3 :Follow step 1 and 2 in another device Step 4 : click 3 dots(more options) and select sound device “Phone” Step 5 : put your device near ear and talk (like normal cellular call) 3-5 minute and your meeting will be disconnected and will see rejoin option

We have no connection problem and we trying more than 1 months to find this problem and we conclude that this is due to talk like normal cellular call .

Step 5 is more important to reproduce this problem if we put phone infront of my desk or my face then working fine.problem occur only when phone using like normal phone call in earpiece call.

saghul commented 3 years ago

Thanks, I'll give that a go.

kirtirc commented 3 years ago

@saghul do you have any idea / suggestion, how can fix this issue Thanks

kirtirc commented 3 years ago

@saghul Please help me ,how can fix this issue. Thanks

kaushal2406 commented 3 years ago

Anyone found Solution for this weired problem ? I am also having same problem.

vinitcc commented 3 years ago

@saghul I am getting same issue the audio call is disconnecting but I don't get any reason and the log. Please help me.

saghul commented 3 years ago

I tried to reproduce this with the Jitsi Meet app 21.3 beta, to no avail. We have not done any specific change that would explain what you see though.

Can you folks check with the latest beta? If will be released as SDK 3.8.0 soon.

kirtirc commented 3 years ago

Hello i have checked in Jitsi Meet app 21.3 beta and still have same problem, make sure you followed same step as provided. here is steps.

Please download Jitsi Meet (IOS) app from App Store in 2 IOS Device Step 1 : Then toggle on Voice (make ONLY audio call) Step 2 : enter room name and click create/join button Step 3 :Follow step 1 and 2 in another device Step 4 : click 3 dots(more options) and "select sound device “ then choose "Phone” Step 5 : Now talk like as if you are getting a normal call , by putting the phone on your ears and NOT ON SPEAKER DO NOT USE BLUETOOTH OR EAR PHONES. AFTER 3-5 minutes this call/meeting will be disconnected and you will get rejoin dialog box.

Step 5 is more important to reproduce this problem if we put phone in front of my desk or my face then working fine.problem occur only when phone using like normal phone call in earpiece call.

Here is attached log again.

2021-08-09 20:32:15.152317+0530 jitsi-meet[626:119441] [JitsiMeetSDK] [modules/xmpp/JingleSessionPC.js] JingleSessionPC[session=JVB,initiator=false,sid=en5u37u5pldg2] sendIceCandidates [{"candidate":"candidate:1285208720 1 udp 2122260223 192.168.175.82 49273 typ host generation 0 ufrag 4Pcv network-id 1 network-cost 10","sdpMLineIndex":0,"sdpMid":"audio"},{"candidate":"candidate:2244698245 1 udp 2122197247 2401:4900:195e:99d2:b0ac:e81c:200c:2f9 58614 typ host generation 0 ufrag 4Pcv network-id 8 network-cost 900","sdpMLineIndex":0,"sdpMid":"audio"},{"candidate":"candidate:114693515 1 udp 2122131711 2401:4900:365d:d171:21c6:32e0:36c2:2829 63231 typ host generation 0 ufrag 4Pcv network-id 9 network-cost 900","sdpMLineIndex":0,"sdpMid":"audio"},{"candidate":"candidate:1041520321 1 udp 2122063615 100.90.64.229 59450 typ host generation 0 ufrag 4Pcv network-id 7 network-cost 900","sdpMLineIndex":0,"sdpMid":"audio"},{"candidate":"candidate:2194072531 1 udp 2122000639 2401:4900:365d:d171:881:4564:c90f:b7c1 55992 typ host generation 0 ufrag 4Pcv network-id 2 network-cost 50","sdpMLineIndex":0,"sdpMid":"audio"},{"candidate":"candidate:2194072531 1 udp 2121935103 2401:4900:365d:d171:881:4564:c90f:b7c1 49787 typ host generation 0 ufrag 4Pcv network-id 3 network-cost 50","sdpMLineIndex":0,"sdpMid":"audio"},{"candidate":"candidate:2194072531 1 udp 2121869567 2401:4900:365d:d171:881:4564:c90f:b7c1 61504 typ host generation 0 ufrag 4Pcv network-id 4 network-cost 50","sdpMLineIndex":0,"sdpMid":"audio"}] 2021-08-09 20:32:15.155205+0530 jitsi-meet[626:119441] [JitsiMeetSDK] [modules/RTC/TraceablePeerConnection.js] TPC[id=1,type=JVB] adding remote track for stream[id=0b84cb60-audio-2,type=audio] 2021-08-09 20:32:15.155232+0530 jitsi-meet[626:119441] [JitsiMeetSDK] [modules/RTC/TraceablePeerConnection.js] TPC[id=1,type=JVB] creating remote track[endpoint=0b84cb60,ssrc=1419917216,type=audio] 2021-08-09 20:32:15.155262+0530 jitsi-meet[626:119441] [JitsiMeetSDK] [modules/RTC/JitsiRemoteTrack.js] New remote track added: RemoteTrack[userID: 0b84cb60, type: audio, ssrc: 1419917216, p2p: false, status: readyState: live, muted: false, enabled: true] 2021-08-09 20:32:15.155282+0530 jitsi-meet[626:119441] [JitsiMeetSDK] [JitsiConference.js] Trying to add remote JVB track, when in P2P - IGNORED 2021-08-09 20:32:15.155738+0530 jitsi-meet[626:119433] [JitsiMeetSDK] [modules/RTC/TraceablePeerConnection.js] TPC[id=1,type=JVB] adding remote track for stream[id=0b84cb60-video-2,type=video] 2021-08-09 20:32:15.155765+0530 jitsi-meet[626:119433] [JitsiMeetSDK] [modules/RTC/TraceablePeerConnection.js] TPC[id=1,type=JVB] creating remote track[endpoint=0b84cb60,ssrc=439961582,type=video] 2021-08-09 20:32:15.155785+0530 jitsi-meet[626:119433] [JitsiMeetSDK] [modules/RTC/JitsiRemoteTrack.js] New remote track added: RemoteTrack[userID: 0b84cb60, type: video, ssrc: 439961582, p2p: false, status: readyState: live, muted: false, enabled: true] 2021-08-09 20:32:15.155804+0530 jitsi-meet[626:119433] [JitsiMeetSDK] [JitsiConference.js] Trying to add remote JVB track, when in P2P - IGNORED 2021-08-09 20:32:15.164623+0530 jitsi-meet[626:119441] [JitsiMeetSDK] [modules/xmpp/JingleSessionPC.js] (TIME) ICE connected JVB: 1628521335164 2021-08-09 20:32:15.203107+0530 jitsi-meet[626:119441] [JitsiMeetSDK] [modules/sdp/SdpConsistency.js] TPC[id=1,type=JVB] no SSRC found for the recvonly video stream! 2021-08-09 20:32:15.225043+0530 jitsi-meet[626:119441] [JitsiMeetSDK] [modules/xmpp/JingleSessionPC.js] JingleSessionPC[session=JVB,initiator=false,sid=en5u37u5pldg2] addRemoteStream - OK 2021-08-09 20:32:15.263784+0530 jitsi-meet[626:119433] [JitsiMeetSDK] [modules/sdp/SdpConsistency.js] TPC[id=2,type=P2P] no SSRC found for the recvonly video stream! 2021-08-09 20:32:15.263839+0530 jitsi-meet[626:119433] [JitsiMeetSDK] [modules/RTC/TraceablePeerConnection.js] TPC[id=2,type=P2P] Adjusted local video direction to inactive 2021-08-09 20:32:15.338966+0530 jitsi-meet[626:119433] [JitsiMeetSDK] [modules/sdp/SdpConsistency.js] TPC[id=1,type=JVB] no SSRC found for the recvonly video stream! 2021-08-09 20:32:15.339029+0530 jitsi-meet[626:119433] [JitsiMeetSDK] [modules/RTC/TraceablePeerConnection.js] TPC[id=1,type=JVB] Adjusted local audio direction to inactive 2021-08-09 20:32:15.339797+0530 jitsi-meet[626:119441] [JitsiMeetSDK] [modules/RTC/TraceablePeerConnection.js] TPC[id=1,type=JVB] Adjusted local video direction to inactive 2021-08-09 20:32:15.354722+0530 jitsi-meet[626:119671] [JitsiMeetSDK] [JitsiConference.js] Suspended media transfer over the JVB connection ! 2021-08-09 20:32:15.360115+0530 jitsi-meet[626:119745] [JitsiMeetSDK] [JitsiConference.js] Suspending media transfer over the JVB connection... 2021-08-09 20:32:15.366224+0530 jitsi-meet[626:119745] [JitsiMeetSDK] [modules/xmpp/JingleSessionPC.js] JingleSessionPC[session=JVB,initiator=false,sid=en5u37u5pldg2] Queued make video inactive, audio inactive task 2021-08-09 20:32:15.366348+0530 jitsi-meet[626:119745] [JitsiMeetSDK] [modules/RTC/BridgeChannel.js] Sending ReceiverVideoConstraints with {"constraints":{"0b84cb60":{"maxHeight":360}},"defaultConstraints":{"maxHeight":0},"lastN":25,"onStageEndpoints":["0b84cb60"],"selectedEndpoints":[]} 2021-08-09 20:32:15.373212+0530 jitsi-meet[626:119671] [JitsiMeetSDK] [JitsiConference.js] Got RESULT for P2P "session-accept" 2021-08-09 20:32:15.373258+0530 jitsi-meet[626:119671] [JitsiMeetSDK] [modules/xmpp/JingleSessionPC.js] JingleSessionPC[session=P2P,initiator=false,sid=e8b365104766] Switching video codec from vp8 to h264 2021-08-09 20:32:15.373280+0530 jitsi-meet[626:119671] [JitsiMeetSDK] [modules/xmpp/JingleSessionPC.js] JingleSessionPC[session=P2P,initiator=false,sid=e8b365104766] setReceiverVideoConstraint - max frame height: 2160 2021-08-09 20:32:15.379441+0530 jitsi-meet[626:119746] [JitsiMeetSDK] [modules/xmpp/JingleSessionPC.js] JingleSessionPC[session=P2P,initiator=false,sid=e8b365104766] sending content-modify, video senders: none, max frame height: 2160 2021-08-09 20:32:15.379475+0530 jitsi-meet[626:119746] [JitsiMeetSDK] [modules/xmpp/JingleSessionPC.js] JingleSessionPC[session=P2P,initiator=false,sid=e8b365104766] received remote max frame height: 2160 2021-08-09 20:32:15.387092+0530 jitsi-meet[626:119745] [JitsiMeetSDK] [modules/xmpp/JingleSessionPC.js] JingleSessionPC[session=JVB,initiator=false,sid=en5u37u5pldg2] setSenderVideoConstraint: 360 2021-08-09 20:32:15.387132+0530 jitsi-meet[626:119745] [JitsiMeetSDK] [modules/xmpp/JingleSessionPC.js] JingleSessionPC[session=JVB,initiator=false,sid=en5u37u5pldg2] Queued make video active, audio active task 2021-08-09 20:32:15.387155+0530 jitsi-meet[626:119745] [JitsiMeetSDK] [modules/xmpp/JingleSessionPC.js] JingleSessionPC[session=P2P,initiator=false,sid=e8b365104766] setSenderVideoConstraint: 360 2021-08-09 20:32:15.419618+0530 jitsi-meet[626:119745] [JitsiMeetSDK] [JitsiConference.js] Suspended media transfer over the JVB connection ! 2021-08-09 20:32:15.485200+0530 jitsi-meet[626:119745] [JitsiMeetSDK] [modules/sdp/SdpConsistency.js] TPC[id=1,type=JVB] no SSRC found for the recvonly video stream! 2021-08-09 20:32:15.495962+0530 jitsi-meet[626:119671] [JitsiMeetSDK] [modules/sdp/SdpConsistency.js] TPC[id=2,type=P2P] no SSRC found for the recvonly video stream! 2021-08-09 20:32:15.496014+0530 jitsi-meet[626:119671] [JitsiMeetSDK] [modules/RTC/TraceablePeerConnection.js] TPC[id=2,type=P2P] Adjusted local video direction to inactive 2021-08-09 20:32:15.517776+0530 jitsi-meet[626:119746] [JitsiMeetSDK] [modules/xmpp/JingleSessionPC.js] JingleSessionPC[session=JVB,initiator=false,sid=en5u37u5pldg2] Processing removeRemoteStream 2021-08-09 20:32:15.523172+0530 jitsi-meet[626:119745] [JitsiMeetSDK] Halt: There are no SSRC groups in the remote description. 2021-08-09 20:32:15.561033+0530 jitsi-meet[626:119671] [JitsiMeetSDK] [modules/RTC/TraceablePeerConnection.js] TPC[id=1,type=JVB] remote track removed stream[id=0b84cb60-audio-2,trackId=f6f10fb1-ef36-4606-873e-5a31f91b0e8e-2] 2021-08-09 20:32:15.561387+0530 jitsi-meet[626:119746] [JitsiMeetSDK] [modules/RTC/TraceablePeerConnection.js] TPC[id=1,type=JVB] remote track removed stream[id=0b84cb60-video-2,trackId=1dfc2445-43aa-4eec-809a-e7987172b2de-2] 2021-08-09 20:32:15.580892+0530 jitsi-meet[626:119671] [JitsiMeetSDK] [modules/sdp/SdpConsistency.js] TPC[id=1,type=JVB] no SSRC found for the recvonly video stream! 2021-08-09 20:32:15.595457+0530 jitsi-meet[626:119746] [JitsiMeetSDK] [modules/xmpp/JingleSessionPC.js] JingleSessionPC[session=JVB,initiator=false,sid=en5u37u5pldg2] removeRemoteStream - OK 2021-08-09 20:32:16.672370+0530 jitsi-meet[626:119670] [JitsiMeetSDK] [modules/RTC/BridgeChannel.js] Dominant speaker: a3024642, previous speakers: 0b84cb60 2021-08-09 20:32:16.959922+0530 jitsi-meet[626:119670] [JitsiMeetSDK] [VideoTrackAdapter] Mute event for 1 8BE5BEA5-CAB2-4328-AD5C-54EF38A6207E 1dfc2445-43aa-4eec-809a-e7987172b2de-1 2021-08-09 20:32:16.980498+0530 jitsi-meet[626:119745] [JitsiMeetSDK] [modules/RTC/JitsiRemoteTrack.js] "onmute" event(1628521336962): RemoteTrack[userID: 0b84cb60, type: video, ssrc: 1825856997, p2p: true, status: readyState: live, muted: true, enabled: true] 2021-08-09 20:32:16.980750+0530 jitsi-meet[626:119745] [JitsiMeetSDK] [modules/connectivity/ParticipantConnectionStatus.js] Detector track RTC muted: 0b84cb60 1628521336964 2021-08-09 20:32:16.982578+0530 jitsi-meet[626:119670] [JitsiMeetSDK] [VideoTrackAdapter] Mute event for 0 D156A4FA-F5B5-451A-A401-51E02219B2A2 mixedlabelvideo0 2021-08-09 20:32:17.506189+0530 jitsi-meet[626:119670] [JitsiMeetSDK] [modules/connectivity/ParticipantConnectionStatus.js] Set RTC mute timeout for: 0b84cb60 of 500 ms 2021-08-09 20:32:17.506254+0530 jitsi-meet[626:119671] [JitsiMeetSDK] [modules/connectivity/ParticipantConnectionStatus.js] Figure out conn status for 0b84cb60, is video muted: true is active(jvb): true video track frozen: true p2p mode: true is in last N: false currentStatus => newStatus: active => active 2021-08-09 20:32:18.034838+0530 jitsi-meet[626:119670] [JitsiMeetSDK] [VideoTrackAdapter] Mute event for 0 8796BB28-6ACB-4B16-855B-40BE74CB78C1 1dfc2445-43aa-4eec-809a-e7987172b2de-2 2021-08-09 20:33:00.521832+0530 jitsi-meet[626:119441] [JitsiMeetSDK] [modules/xmpp/JingleSessionPC.js] JingleSessionPC[session=P2P,initiator=false,sid=e8b365104766] received remote max frame height: 2160 2021-08-09 20:33:00.539252+0530 jitsi-meet[626:119916] [JitsiMeetSDK] [modules/xmpp/JingleSessionPC.js] JingleSessionPC[session=JVB,initiator=false,sid=en5u37u5pldg2] setSenderVideoConstraint: 360 2021-08-09 20:33:00.539410+0530 jitsi-meet[626:119433] [JitsiMeetSDK] [modules/xmpp/JingleSessionPC.js] JingleSessionPC[session=JVB,initiator=false,sid=en5u37u5pldg2] Queued make video active, audio active task 2021-08-09 20:33:00.539486+0530 jitsi-meet[626:119433] [JitsiMeetSDK] [modules/xmpp/JingleSessionPC.js] JingleSessionPC[session=P2P,initiator=false,sid=e8b365104766] setSenderVideoConstraint: 360 2021-08-09 20:34:00.517081+0530 jitsi-meet[626:119671] [JitsiMeetSDK] [modules/RTC/BridgeChannel.js] Channel closed by server 2021-08-09 20:34:00.517298+0530 jitsi-meet[626:119916] [JitsiMeetSDK] [modules/RTC/BridgeChannel.js] Channel closed: 1001 Stream end encountered 2021-08-09 20:34:00.611967+0530 jitsi-meet[626:119916] [JitsiMeetSDK] [modules/xmpp/JingleSessionPC.js] (TIME) ICE disconnected P2P: 1628521440584 2021-08-09 20:34:07.315964+0530 jitsi-meet[626:119670] [JitsiMeetSDK] [modules/xmpp/JingleSessionPC.js] (TIME) ICE disconnected JVB: 1628521447312 2021-08-09 20:34:07.597231+0530 jitsi-meet[626:119441] [JitsiMeetSDK] SocketRocket: In debug mode. Allowing connection to any root cert 2021-08-09 20:34:07.619280+0530 jitsi-meet[626:119670] [connection] nw_endpoint_handler_set_adaptive_read_handler [C10.1 146.56.48.19:443 ready socket-flow (satisfied (Path is satisfied), viable, interface: en0, ipv4, dns)] unregister notification for read_timeout failed 2021-08-09 20:34:07.619338+0530 jitsi-meet[626:119670] [connection] nw_endpoint_handler_set_adaptive_write_handler [C10.1 146.56.48.19:443 ready socket-flow (satisfied (Path is satisfied), viable, interface: en0, ipv4, dns)] unregister notification for write_timeout failed 2021-08-09 20:34:07.649738+0530 jitsi-meet[626:119433] [JitsiMeetSDK] [modules/xmpp/xmpp.js] (TIME) Strophe connfail[item-not-found]: 1628521447622 2021-08-09 20:34:07.649803+0530 jitsi-meet[626:119433] [JitsiMeetSDK] [modules/xmpp/strophe.ping.js] Ping interval cleared 2021-08-09 20:34:07.649832+0530 jitsi-meet[626:119433] [JitsiMeetSDK] [modules/xmpp/xmpp.js] (TIME) Strophe disconnected[item-not-found]: 1628521447623 2021-08-09 20:34:07.649865+0530 jitsi-meet[626:119433] [JitsiMeetSDK] [modules/statistics/statistics.js] {"type":"operational","action":"connection.failed","attributes":{"error_type":"connection.otherError","error_message":"item-not-found","shard_changed":false,"suspend_time":79071,"time_since_last_success":1}} 2021-08-09 20:34:07.692878+0530 jitsi-meet[626:119670] [JitsiMeetSDK] [features/overlay] The conference will be reloaded after 12 seconds. 2021-08-09 20:34:07.955028+0530 jitsi-meet[626:119441] [JitsiMeetSDK] [features/base/lastn] There is no active conference, not updating last N 2021-08-09 20:34:07.980852+0530 jitsi-meet[626:119056] Participant left: 0b84cb60 2021-08-09 20:34:07.980977+0530 jitsi-meet[626:119671] [JitsiMeetSDK] [features/base/lastn] There is no active conference, not updating last N 2021-08-09 20:34:07.993536+0530 jitsi-meet[626:119441] [JitsiMeetSDK] [modules/e2eping/e2eping.js] Stopping e2eping 2021-08-09 20:34:08.027180+0530 jitsi-meet[626:119441] [JitsiMeetSDK] [modules/xmpp/ChatRoom.js] do leave aaa111@conference.meet.jit.si/a3024642 2021-08-09 20:34:08.043873+0530 jitsi-meet[626:119056] [/Users/Mac/Downloads/jitsi-meet-mobile-21.3 2/ios/app/src/ViewController.m:47] JitsiMeetViewDelegate CONFERENCE_TERMINATED { error = "connection.otherError"; url = "https://meet.jit.si/aaa111"; } 2021-08-09 20:34:08.052461+0530 jitsi-meet[626:119056] [/Users/Mac/Downloads/jitsi-meet-mobile-21.3 2/ios/app/src/ViewController.m:47] JitsiMeetViewDelegate CONFERENCE_TERMINATED { error = "connection.otherError"; url = "https://meet.jit.si/aaa111"; } 2021-08-09 20:34:08.052721+0530 jitsi-meet[626:119441] [JitsiMeetSDK] [modules/RTC/TraceablePeerConnection.js] TPC[id=1,type=JVB] Closing peerconnection 2021-08-09 20:34:08.091880+0530 jitsi-meet[626:120351] [JitsiMeetSDK] [features/base/lastn] There is no active conference, not updating last N 2021-08-09 20:34:08.109947+0530 jitsi-meet[626:119670] [JitsiMeetSDK] [modules/RTC/TraceablePeerConnection.js] TPC[id=2,type=P2P] Closing peerconnection 2021-08-09 20:34:08.121139+0530 jitsi-meet[626:119056] Participant left: 0b84cb60 2021-08-09 20:34:08.121393+0530 jitsi-meet[626:120350] [JitsiMeetSDK] [features/base/lastn] There is no active conference, not updating last N 2021-08-09 20:34:08.121427+0530 jitsi-meet[626:120350] [JitsiMeetSDK] [JitsiConference.js] P2P? peerCount: 0, hasBotPeer: false => false

saghul commented 3 years ago

Hello i have checked in Jitsi Meet app 21.3 beta and still have same problem, make sure you followed same step as provided. here is steps.

Please download Jitsi Meet (IOS) app from App Store in 2 IOS Device Step 1 : Then toggle on Voice (make ONLY audio call) Step 2 : enter room name and click create/join button Step 3 :Follow step 1 and 2 in another device Step 4 : click 3 dots(more options) and "select sound device “ then choose "Phone” Step 5 : Now talk like as if you are getting a normal call , by putting the phone on your ears and NOT ON SPEAKER DO NOT USE BLUETOOTH OR EAR PHONES. AFTER 3-5 minutes this call/meeting will be disconnected and you will get rejoin dialog box.

That's what I did. I set a timer to 5 minutes and kept my phone on my ear. Not sure why your connection drops... do you have a different network you can test on?

kirtirc commented 3 years ago

@saghul thanks for quick reply we checked again in different network and different IOS Device and every time reproduce this problem within 2-3 minute call disconnect, can reproduce this problem in IOS-IOS Device, IOS to Android and IOS to Desktop Browser and this problem occur in IOS device Only.

have you followed from step 1 to step 5 and make sure you don't miss any steps. and do not check on speaker mode Thanks

saghul commented 3 years ago

Yep, I double checked. What iOS version are you using?

kirtirc commented 3 years ago

Iphone X - ios 14.5 and ios 14.6 Iphone 12 - ios 14.5 and ios 14.6 Iphone 7 - ios 14.6 iPhone 7 Plus iOS 14.3

parth2326 commented 3 years ago

@saghul I am also facing the same issue in ios sdk. in current ios app downloaded from appstore and when trying to call and placing phone on ear then it will get disconnected within sometime. Please check this. thank you.

saghul commented 3 years ago

Do you have the voip and audio background modes enabled? Can you reproduce it with the beta app? Please provide your logs.

parth2326 commented 3 years ago

Hello @saghul I checked the 3.8.0(beta) version source code. void and audio background is enabled. and still i am getting this error.

[/Users/Mac/Downloads/jitsi-meet-ios-sdk-3.8.0/ios/app/src/ViewController.m:47] JitsiMeetViewDelegate CONFERENCE_TERMINATED { error = "connection.otherError"; url = "https://meet.jit.si/111222333"; } 2021-08-17 18:37:01.928304+0530 jitsi-meet[6860:2664530] [/Users/Mac/Downloads/jitsi-meet-ios-sdk-3.8.0/ios/app/src/ViewController.m:47] JitsiMeetViewDelegate CONFERENCE_TERMINATED { error = "connection.otherError"; url = "https://meet.jit.si/111222333"; } 2021-08-17 18:37:01.928392+0530 jitsi-meet[6860:2665596] [JitsiMeetSDK] [modules/RTC/TraceablePeerConnection.js] TPC[id=1,type=JVB] Closing peerconnection 2021-08-17 18:37:01.928423+0530 jitsi-meet[6860:2665596] [JitsiMeetSDK] [modules/xmpp/JingleSessionPC.js] JingleSessionPC[session=JVB,initiator=false,sid=182671atge78m] PC close task done! 2021-08-17 18:37:01.928442+0530

kirtirc commented 3 years ago

Hello @saghul I have downloaded latest version 21.3.0 from App Store and checked that It not changing sound device Speaker to phone and it always keep speaker mode on and that why this issue can not reproduce again. Can you please fix change of speaker to phone audio device mode not working in latest app store version .

IMG_0190

saghul commented 3 years ago

Hum, you're right that's really weird. When I tested I know it worked because I was putting it to my ear. I'll take a look.

saghul commented 3 years ago

I found the problem. This would also explain the disconnects actually: https://github.com/jitsi/jitsi-meet/pull/9757 I'm pushing a new beta now.

kirtirc commented 3 years ago

Hello @saghul device selection (Speaker to phone) problem fixed but original problem not fixed yet. here is step to reproduce problem

Step 1 : Then toggle on Voice (make ONLY audio call) Step 2 : enter room name and click create/join button Step 3 :Follow step 1 and 2 in another device Step 4 : click 3 dots(more options) and "select sound device “ then choose "Phone” Step 5 : Now talk like as if you are getting a normal call , by putting the phone on your ears and NOT ON SPEAKER DO NOT USE BLUETOOTH OR EAR PHONES. AFTER 3-5 minutes this call/meeting will be disconnected and you will get rejoin dialog box.

Thanks

saghul commented 3 years ago

Good news, I am now able to reproduce the problem. I guess the deadlock prevented the actual device switch, so I wasn't actually testing the right thing.

saghul commented 3 years ago

Got a fix: https://github.com/jitsi/jitsi-meet/pull/9759 - Beta coming soon.

kirtirc commented 3 years ago

@saghul thank you so much you have done great Job !!!

parth2326 commented 3 years ago

@saghul thanks. fixed my issue as well.

saghul commented 3 years ago

Thanks for confirming folks! This was a tricky one, so thanks for providing logs and helping with testing!