Member Junction
    Preparing search index...

    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).

    Implements

    Index

    Constructors

    Methods

    • 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.

      Parameters

      • listener: (callUuid: string) => void

      Returns void

    • 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.

      Parameters

      • listener: (callKey: string) => void

      Returns void

    • 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.

      Parameters

      • ref: VonageSocketCallRef

        The id the socket claims (call_uuid for inbound, mj_cid for outbound).

      • token: string | undefined

        The mj_token query param (absent ⇒ refused).

      • socket: ITelephonyMediaSocket

        The connected socket.

      Returns VonageAttachResult

      The channel key to dispatch under (CallKey), or why the socket was refused.