mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-17 11:08:06 +00:00
refactor code
This commit is contained in:
parent
31b1e1d5d7
commit
557eca0821
1 changed files with 3 additions and 4 deletions
|
|
@ -89,12 +89,11 @@
|
|||
completion:^(NSError *error) {
|
||||
if (error) {
|
||||
LOGE(@"CallKit: cannot complete incoming call from [%@] caused by [%@]",handle,[error localizedDescription]);
|
||||
if ( [error code] == CXErrorCodeIncomingCallErrorFilteredByDoNotDisturb
|
||||
|| [error code] == CXErrorCodeIncomingCallErrorFilteredByBlockList) {
|
||||
if ([error code] == CXErrorCodeIncomingCallErrorFilteredByDoNotDisturb ||
|
||||
[error code] == CXErrorCodeIncomingCallErrorFilteredByBlockList)
|
||||
linphone_call_decline(call,LinphoneReasonBusy); /*to give a chance for other devices to answer*/
|
||||
} else {
|
||||
else
|
||||
linphone_call_decline(call,LinphoneReasonUnknown);
|
||||
}
|
||||
}
|
||||
linphone_call_unref(call);
|
||||
}];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue