问题现象
应用内主动发起通话,已经接通了,但是页面上通话状态还是显示“正在等待对方接听”。
问题定位
- 检查应用的通话方式:通过"voip"关键词搜索日志,得到如下日志,发现应用使用了Call Service Kit通话服务,还有音视频流、输入输出设备等一些信息的显示。
02-09 18:06:43.923 1392 11037 I C02560/audio_host/audio_hw_primary: [reset_input_route_for_noise_reduction:143]: voip scene: 1, need noise reduction: 0, input route: communication-bt-sco-mic
02-09 18:06:43.925 1392 11037 I C02560/audio_host/audio_capture_multimic: [multi_mic_voip:131]: voip
02-09 18:06:44.016 1392 11037 I C02562/audio_host/CustAudio: AlgoLib::Init:400: AlgoLib stream 14: to init algo for voipprocessing_module_voip_tx,in_device=0x80000008,out_device=0x10,source=7
02-09 18:07:18.163 1456 2662 I C02B2E/media_service/ScreenCaptureServer: #2351 OnVoIPStatusChanged, isInVoIPCall:1
02-09 18:07:18.222 805 2358 I C02B87/audio_server/AudioStreamCollector: [ChangeVoipCapturerStreamToNormal]Has capture stream count: 2
02-09 18:07:18.222 805 2358 W C02B8B/audio_server/AudioPolicyService: [GetPreferredInputStreamTypeInner]Voip Change To Normal
02-09 18:07:18.225 805 32577 I C02B89/audio_server/AudioRendererSinkInner: [SetAudioParameter]SetAudioParameter: key 0, condition: , value: VOIP_APPSCENE=0;
- 搜索"VOIP_CALL_EVENT_VIDEO_ANSWER"、"VOIP_CALL_VIDEO"、"VoipCallState"、"reportCallStateChange"等日志关键词,发现日志中并没有关于应用视频通话接听事件、通话状态变化的信息打印,判断该应用未监听通话状态。
分析结论
应用在发起通话和接听通话后都没有监听通话状态,导致页面一直显示“正在等待对方接听”。