Audio device not responding error comes after 30-40 sec and call disconnected automatically
niravpatel-rishabh opened this issue · 2 comments
Describe the bug
I am using this SDK for a one-to-one video call feature in my apps and when one user calls to another user and if other user does not accept or reject the call for 30-35 seconds then the "audioInputDeviceNotResponding" status comes and the call gets disconnected in the caller side only and at receiver side it still ringing. And i have set up a call kit max ringing time of 2 minutes so at receiver side will not disconnect till 2 minutes. So is there any solution or setting then we can increase the time for that audio device not responding to callback in SDK or from the console?
Following function calls after 30-35 secs:
func audioSessionDidStopWithStatus(sessionStatus: MeetingSessionStatus) {
logWithFunctionName(message: "(sessionStatus.statusCode)")
removeAudioVideoFacadeObservers()
if let call = call {
switch sessionStatus.statusCode {
case .ok:
if call.isOnHold {
return
}
case .audioCallEnded, .audioServerHungup:
CallKitManager.shared().reportCallEndedFromRemote(with: call, reason: .remoteEnded)
case .audioJoinedFromAnotherDevice:
CallKitManager.shared().reportCallEndedFromRemote(with: call, reason: .answeredElsewhere)
case .audioDisconnectAudio:
CallKitManager.shared().reportCallEndedFromRemote(with: call, reason: .declinedElsewhere)
default:
CallKitManager.shared().reportCallEndedFromRemote(with: call, reason: .failed)
}
}
endMeeting()
}
Test environment Info (please complete the following information):
- Device: iPhone 12 pro
- OS: iOS 16.3 and iOS 16.6
- Version AmazonChimeSDK: 0.23.1
- Version AmazonChimeSDKMedia: 0.18.1
- Can you reproduce this in the demo app?
@hokyungh can you please look into it and update for above issue?