From 895d50adb46f02bde55fb6c9fe47ad5ba2ef545d Mon Sep 17 00:00:00 2001 From: Danmei Chen Date: Wed, 2 Sep 2020 11:58:43 +0200 Subject: [PATCH] fix lost of son when audio route changed --- Classes/LinphoneManager.m | 1 + 1 file changed, 1 insertion(+) diff --git a/Classes/LinphoneManager.m b/Classes/LinphoneManager.m index 66998706a..b59584e9b 100644 --- a/Classes/LinphoneManager.m +++ b/Classes/LinphoneManager.m @@ -1700,6 +1700,7 @@ static int comp_call_state_paused(const LinphoneCall *call, const void *param) { if (newRoute && newRoute.outputs.count > 0) { NSString *route = newRoute.outputs[0].portType; LOGI(@"Current audio route is [%s]", [route UTF8String]); + linphone_core_audio_route_changed(theLinphoneCore); CallManager.instance.speakerEnabled = [route isEqualToString:AVAudioSessionPortBuiltInSpeaker]; if (([[AudioHelper bluetoothRoutes] containsObject:route]) && !CallManager.instance.speakerEnabled) {