acceptCall (15)

The acceptCall message is sent by the recipient of a requestCall message to signal that they have accepted the incoming call. This completes the call signaling handshake and allows media streaming to begin.

This message is a specialized version of the appRequestAccept message, contextualized by the call's sessionId.

Core Data Types

Payload Structure

The payload follows the structure of an AppDataMessage. The appInfo field is not required in the response.

FieldData TypeMinMaxDescription
sessionIdIxiBytes**The unique identifier of the call session being accepted. This MUST match the sessionId from the original requestCall message.
dataIxiBytes0*Optional. Contains the recipient's call parameters, such as the chosen codecs from the list offered in the requestCall.

Behavioral Notes

  • Trigger: A user's client sends this message after the user clicks "accept" on an incoming call notification.
  • Implementation: The client constructs an AppDataMessage payload with the call's sessionId and sends it within a SpixiMessage of type appRequestAccept.
  • Sender Action: Upon receiving acceptCall, the original caller's client knows the call is connected. Both clients can then proceed to exchange media via callData messages.