diff --git a/Classes/PhoneViewController.m b/Classes/PhoneViewController.m index 1e06fbf61..9c5d6d0a6 100644 --- a/Classes/PhoneViewController.m +++ b/Classes/PhoneViewController.m @@ -292,7 +292,7 @@ - (void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex withUserDatas:(void *)datas{ LinphoneCall* call = (LinphoneCall*)datas; - if (buttonIndex == 0 ) { + if (buttonIndex == actionSheet.destructiveButtonIndex ) { linphone_core_accept_call([LinphoneManager getLc],call); } else { linphone_core_terminate_call ([LinphoneManager getLc], call);