Module calls

Source
Expand description

§Handle calls.

Internally, calls are bound a user-visible message initializing the call. This means, the “Call ID” is a “Message ID” - similar to Webxdc IDs.

Structs§

CallInfo
Information about the status of a call.
IceServer 🔒
ICE server for JSON serialization.

Enums§

CallState
State of the call for display in the message bubble.

Constants§

CALL_ACCEPTED_TIMESTAMP 🔒
CALL_CANCELED_TIMESTAMP 🔒
Set if incoming call was ended explicitly by the other side before we accepted it.
CALL_ENDED_TIMESTAMP 🔒
RINGING_SECONDS 🔒
How long callee’s or caller’s phone ring.
STUN_PORT 🔒

Functions§

call_state
Returns call state given the message ID.
create_fallback_ice_servers 🔒
Creates JSON with ICE servers when no TURN servers are known.
create_ice_servers 🔒
Creates JSON with ICE servers.
create_ice_servers_from_metadata 🔒
Creates JSON with ICE servers from a line received over IMAP METADATA.
ice_servers
Returns JSON with ICE servers.
sdp_has_video
Returns true if SDP offer has a video.