Binds a connected Media-Streams socket (and its captured stream SID) to a call, flushing any
outbound frames produced while the socket was still connecting. Called by the WSS server on the
start frame.
Dispatches one inbound Media-Streams frame to all registered handlers for the call.
Tears down a call's channel and closes its socket (called on socket close / call end).
Whether a channel is currently tracked for the call (test/observability helper).
Ensures a channel exists for a call (called when a bridge session for the call starts).
Coordinates Media-Streams sockets with the bridge bindings, keyed by Call SID. One instance per server, shared between the inbound-webhook service (which binds
RealTwilioBindingsover this as theITwilioMediaPump) and the WSS server (which attaches sockets + dispatches inbound frames).