Member Junction
    Preparing search index...

    Starts Twilio bridge sessions. One instance per server, constructed alongside the telephony router and sharing the TwilioCallMediaRegistry with the Media-Streams WSS server.

    Index

    Constructors

    Methods

    • Resolves the dialed DID to a pinned agent and starts an INBOUND bridge session. The bound RealTwilioBindings will accept the Media-Streams socket (opened by the webhook's TwiML) for the Call SID. Returns { accepted:false } (never throws) when no agent identity matches the DID, so the webhook can answer with a polite "no agent" message instead of a 500.

      Parameters

      Returns Promise<InboundCallResult>

    • Places an OUTBOUND call from a given agent identity to a destination number. The bound RealTwilioBindings.createCall issues the Twilio REST POST /Calls with the <Connect><Stream> TwiML; the returned Call SID is the bridge's external connection id.

      Parameters

      Returns Promise<string>

      The placed Call SID.