SDKsiOSEnterprise
Cancel a call invitation
Cancel an unanswered call invitation with the OpenIM iOS SDK.
Before an invitation has been answered, the caller can cancel it:
[[OIMManager manager] signalingCancel:signalingInfo
onSuccess:^{ [self releaseCallResources]; }
onFailure:^(NSInteger code, NSString * _Nullable message) {
[self showCallError:code message:message ?: @"Failed to cancel the invitation"];
}];Use the complete OIMSignalingInfo saved when the invitation was initiated. The success callback means that the cancellation signaling request completed. The app should also leave its waiting state and release media resources.
Was this page helpful?