From 7e603ffdd9a34a1bf8189b4da512a0deae20aa6f Mon Sep 17 00:00:00 2001 From: Pierre-Eric Pelloux-Prayer Date: Thu, 1 Dec 2011 16:09:31 +0100 Subject: [PATCH] User is allowed to place a new call if linphone_core_sound_resource_locked() is false --- Classes/PhoneViewController.m | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/Classes/PhoneViewController.m b/Classes/PhoneViewController.m index 9c5d6d0a6..6fd2f0fbc 100644 --- a/Classes/PhoneViewController.m +++ b/Classes/PhoneViewController.m @@ -141,19 +141,7 @@ [callShort setHidden:TRUE]; [backToCallView setHidden:TRUE]; } else { - bool areAllCallPausedOrInConference = true; - const MSList* calls = linphone_core_get_calls([LinphoneManager getLc]); - while (calls) { - LinphoneCall* call = (LinphoneCall*)calls->data; - if (!linphone_call_get_current_params(call)->in_conference - && (linphone_call_get_state(call) != LinphoneCallPaused)) { - areAllCallPausedOrInConference = false; - break; - } else { - calls = calls->next; - } - } - [callShort setEnabled:areAllCallPausedOrInConference]; + [callShort setEnabled:!linphone_core_sound_resources_locked([LinphoneManager getLc])]; [callLarge setHidden:TRUE]; [callShort setHidden:FALSE]; [backToCallView setHidden:FALSE];