forked from mirrors/linphone-iphone
Disable conference button during transition states
This commit is contained in:
parent
59adceb9d2
commit
9a6e8dcdf4
1 changed files with 16 additions and 0 deletions
|
|
@ -277,6 +277,22 @@
|
|||
[pauseButton setHidden:true];
|
||||
[conferenceButton setHidden:false];
|
||||
}
|
||||
bool enabled = true;
|
||||
const MSList *list = linphone_core_get_calls(lc);
|
||||
while(list != NULL) {
|
||||
LinphoneCall *call = (LinphoneCall*) list->data;
|
||||
LinphoneCallState state = linphone_call_get_state(call);
|
||||
if(state == LinphoneCallIncomingReceived ||
|
||||
state == LinphoneCallOutgoingInit ||
|
||||
state == LinphoneCallOutgoingProgress ||
|
||||
state == LinphoneCallOutgoingRinging ||
|
||||
state == LinphoneCallOutgoingEarlyMedia ||
|
||||
state == LinphoneCallConnected) {
|
||||
enabled = false;
|
||||
}
|
||||
list = list->next;
|
||||
}
|
||||
[conferenceButton setEnabled:enabled];
|
||||
} else {
|
||||
if([pauseButton isHidden]) {
|
||||
[pauseButton setHidden:false];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue