From 995a3f6de986634d1bc0e6a963a63c90758993fe Mon Sep 17 00:00:00 2001 From: Guillaume BIENKOWSKI Date: Mon, 11 Aug 2014 15:27:28 +0200 Subject: [PATCH] Fix for impossible mute since iOS7... --- Classes/LinphoneManager.m | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Classes/LinphoneManager.m b/Classes/LinphoneManager.m index eb959ae36..3ec024dd7 100644 --- a/Classes/LinphoneManager.m +++ b/Classes/LinphoneManager.m @@ -754,6 +754,12 @@ static void linphone_iphone_display_status(struct _LinphoneCore * lc, const char speaker_already_enabled = TRUE; } } + + if(state == LinphoneCallStreamsRunning ){ + [[AVAudioSession sharedInstance] setCategory:AVAudioSessionCategoryPlayback error:nil]; + [[AVAudioSession sharedInstance] setCategory:AVAudioSessionCategoryPlayAndRecord error:nil]; + } + if (state == LinphoneCallConnected && !mCallCenter) { /*only register CT call center CB for connected call*/ [self setupGSMInteraction];