Member Junction
    Preparing search index...

    Class BaseDetachedMediaBridgeAbstract

    Abstract base class for a detached-media Realtime Bridge driver (e.g. OpenAISipBridge).

    In a detached media plane, the platform/carrier terminates the live media leg directly with the AI provider (e.g. OpenAI SIP endpoints), while MemberJunction attaches a sideband connection for signaling, events, transcripts, tool calls, and telemetry.

    MemberJunction is not in the live media path and does not relay audio between the carrier and the model. Therefore, SendMedia and FlushOutboundMedia are safe no-ops, and OnMedia registers an observer handler without pumping media frames into an audio sink.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    agentNumber: string = ''
    botParticipantId: string = 'bot'
    callEndedHandlers: (() => void)[] = []
    callerNumber: string = ''
    dtmfHandlers: ((digit: string) => void)[] = []
    externalCallId: string = ''

    The capability flags for the provider this bridge instance serves. Populated from the RealtimeBridgeContext at BaseRealtimeBridge.Connect time (and may be set by the engine immediately after construction). Drives BaseRealtimeBridge.RequireFeature.

    mediaHandlers: ((frame: BridgeMediaFrame) => void)[] = []
    providerName: string = ''

    The provider's display name for this bridge instance, used in capability-error messages. Populated from the RealtimeBridgeContext; falls back to the driver class name.

    Accessors

    Methods

    • Sends DTMF tones on a telephony bridge.

      Capability-gated by SupportedFeatures.DTMF. Throws unless overridden by a telephony driver.

      Parameters

      • _digits: string

        The DTMF digit string to send (e.g. '1234#').

      Returns Promise<void>

      A promise that resolves once the tones have been sent.

      when not overridden.

    • Transfers the call to another party on a telephony bridge.

      Capability-gated by SupportedFeatures.CallTransfer. Throws unless overridden.

      Parameters

      • _target: string

        The transfer target (a phone number or platform endpoint identifier).

      Returns Promise<void>

      A promise that resolves once the transfer has been initiated.

      when not overridden.