SDKsiOSEnterprise
Accept a call
Accept a call invitation with the OpenIM iOS SDK.
After receiving the complete OIMSignalingInfo from onReceiveNewInvitation:, accept the invitation:
[[OIMManager manager] signalingAccept:signalingInfo
onSuccess:^(OIMInvitationResultInfo * _Nullable credentials) {
if (credentials != nil) [self joinMediaRoom:credentials];
}
onFailure:^(NSInteger code, NSString * _Nullable message) {
[self showCallError:code message:message ?: @"Failed to accept the invitation"];
}];Pass the original object received from the event; do not generate a new roomID. The success callback returns the credentials required to join the room. Connect to the media engine only after obtaining a valid token and roomID.
Was this page helpful?