Browse SDKs · Flutter
Platform
SDKsFlutterEnterprise

Accept a call

Accept an incoming call invitation and retrieve room credentials using the OpenIM Flutter SDK.

Copy

When an invitee receives a call invitation in Handle call events and obtains the raw SignalingInfo, call this method to accept the invitation:

Parameters

ParameterTypeRequiredDescription
infoSignalingInfoYesThe complete signaling object received in the invitation callback. Pass the original object rather than reconstructing one from roomID.

Code example

final credentials = await OpenIM.iMManager.signalingManager
    .signalingAccept(info: receivedInfo);

Return value

A successful Future returns a SignalingCertificate object containing room connection credentials.

FieldTypeDescription
tokenString?Room authentication token required by the media engine.
roomIDString?Target call room ID.
liveURLString?Live media streaming server URL.
busyLineUserIDListList<String>?List of user IDs currently busy on another line.

State changes after the call

A successful call indicates that the acceptance signal was accepted by the server and room credentials were issued. It does not imply that WebRTC media tracks are connected. Use roomID as the primary key to manage the active call session, and correlate participants with their user IDs. For complete event listening, see Handle call events.