mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-17 19:18:06 +00:00
User is allowed to place a new call if linphone_core_sound_resource_locked() is false
This commit is contained in:
parent
202a22314c
commit
7e603ffdd9
1 changed files with 1 additions and 13 deletions
|
|
@ -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];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue