How to stop a session (inject a fake in tests).
Maximum call length; a non-positive or non-finite value uses the default.
Attaches the live session to its call and arms the max-duration timer. If an end was requested while the session was still starting, the session is stopped immediately instead.
Marks a call as starting (its bridge session is being created) and starts the start-deadline timer. Idempotent. Registering the call BEFORE the session exists is what lets a terminal carrier status that races the session start be remembered rather than dropped.
Cancels every timer and forgets every call (service shutdown).
The session failed to start: forget the call and cancel its timer.
Whether a call is currently tracked (any state).
The session ended by some other route (hang-up, remote end): forget the call and cancel its timer.
Asks for a call to end (carrier status, machine detection, connect timeout). A live session is stopped now; a still-starting one is stopped as soon as it attaches; an unknown call is ignored (it already ended).
true when a live or starting call was found.
Maps carrier call ids to their live bridge session, ends calls on request, and enforces the call cap.