Browse SDKs · iOS
SDKsiOSEnterprise

Reject a call

Reject a call invitation with the OpenIM iOS SDK.

Copy

When the user rejects an incoming call, pass the original OIMSignalingInfo from the event to the reject API:

[[OIMManager manager] signalingReject:signalingInfo
                            onSuccess:^{ [self closeIncomingCall]; }
                            onFailure:^(NSInteger code, NSString * _Nullable message) {
    [self showCallError:code message:message ?: @"Failed to reject the invitation"];
}];

The success callback only means that OpenIMServer completed the rejection request. The caller subsequently updates its state through onInviteeRejected:. For complete handling, see Call events.