Discards the call's queued outbound audio (sends Vonage's {"action":"clear"} text command).
Cancels every outstanding connect timer (server shutdown).
Registers an INBOUND call MJ accepted, with the token its media socket must present.
OptionalttlMs: numberWhether MJ is still waiting for (or has already authenticated) a socket for the call.
Registers the listener told the moment a call's UUID becomes known to MJ — ExpectCall for an
inbound call, BindOutboundCall for an outbound one (the instant createCall yields the UUID,
which is earlier than the bridge session finishing its start). One listener; the latest wins.
Registers the listener told when a call's media socket never connected within its TTL — the call has been dropped from the registry and the owner should end the session. One listener; the latest wins. The key passed is the call UUID once known, otherwise the correlation id.
Ensures a channel exists for a call (called when a bridge session for the call starts).
Sends one outbound PCM16 audio frame as a BINARY websocket message (raw L16 PCM, no envelope).
Authenticates and binds a connected media socket to a call MJ registered. A refused socket is NOT attached and changes no state; the caller closes it.
The id the socket claims (call_uuid for inbound, mj_cid for outbound).
The mj_token query param (absent ⇒ refused).
The connected socket.
The channel key to dispatch under (CallKey), or why the socket was refused.
Coordinates Vonage media websockets with the bridge bindings, keyed by call UUID (or, for an outbound call whose UUID is not yet known, its correlation id).