Hi @DTS Engineer
Now we can reproduce this issue:
When the issue occurs, incoming calls always have no audio (both ways). The "setActive(YES) for workaround" in our app CANNOT fix the issue.
For outbound calls, there is no audio (both ways) at the beginning. The "setActive(YES) for workaround" in our app CAN fix the issue.
The issue always occurs for subsequent calls, unless the app is restarted.
"setActive(YES) for workaround" means our app will force AVAudioSession to setActive when it detects that CallKit did not activate the AVAudioSession.
The bug is likely Apple-related. Could you please investigate the console logs? Thank you again for your assistance.
Please find the console logs in https://drive.google.com/drive/folders/1Uo7BcS5nzmRPmFaKg7-5_X3s-Tk9cwvt?usp=drive_link
incoming call example:
file: console-incoming.log
18:44:22 start ring & report incoming call
default 18:44:22.512414+0800 Glip Provider <private> was asked to report a new incoming call with UUID: <private> update: <private>
18:44:22 audiomxd start report errors, no audio both ways
error 18:44:22.533627+0800 audiomxd AVAudioSessionXPCServer.mm:404 -[AVAudioSessionRemoteXPCClient createProxySession:reply:] failed due to session lookup failure for SessionID 0x0
18:44:28 our app try to active audio session for workaround, doesn't work
default 18:44:28.998028+0800 audiomxd AudioSessionServerImp.mm:957 { "action":"activate", "session":{"ID":"0x6b102","name":"Glip(1554)"}, "details":{"->":"entry"} }
outgoing call example:
file: console-outgoing.log
19:13:27 make call
default 19:13:27.738603+0800 callservicesd Dialing new call due to requested start call action: <private>
19:13:27 start report errors, same as incoming call, no audio both ways
error 19:13:27.744302+0800 audiomxd AVAudioSessionXPCServer.mm:404 -[AVAudioSessionRemoteXPCClient createProxySession:reply:] failed due to session lookup failure for SessionID 0x0
19:13:33 our app try to active audio session for workaround, audio recovery
default 19:13:33.423110+0800 audiomxd AudioSessionServerImp.mm:1056 { "action":"activate", "session":{"ID":"0x6b102","name":"Glip(1554)"}, "details":{"->":"exit"} }