Resolved credentials + stream URL + the native module specifier.
The native-adapter loader (defaults to the lazy specifier loader).
Loads the native adapter, constructs a client, wires its callbacks, and answers an inbound call already delivered to the agent's number. Brings BOTH hearing and the agent's voice online.
The platform-native identifier of the inbound call to answer.
Loads the native adapter, constructs a client, wires its callbacks, and places the outbound call. Brings BOTH hearing and the agent's voice online. Resolves the platform-native Call SID.
The destination phone number to dial.
The agent's caller-id / DID the call originates from.
Optionalargs: Record<string, unknown>Provider-specific dial parameters.
The Twilio Call SID for the placed call.
Hangs up the call via the native client and clears the active call. Tolerant of teardown errors.
The platform-native identifier of the call to end.
Registers the inbound audio handler (the agent's hearing path). Wires it to the live client when a call already exists; otherwise it is (re-)registered at bindCall when the call comes online.
Invoked with each inbound PCM audio frame.
Registers the call-ended handler. Wires it to the live client when a call already exists; otherwise it is (re-)registered at bindCall when the call comes online.
Invoked when the call ends.
Registers the inbound DTMF handler. Wires it to the live client when a call already exists; otherwise it is (re-)registered at bindCall when the call comes online.
Invoked with each received DTMF digit string.
Sends one raw PCM frame as the agent's outbound voice into the call — the agent's real voice on the call, via the native Media-Streams send path. No-ops (without throwing) before a call exists so an early model frame never crashes the session.
The PCM audio bytes to speak into the call.
Sends DTMF touch-tones on the call via the native client. No-ops (without throwing) before a call exists.
The DTMF digit string to send.
Transfers the live call to another party via the native client. No-ops (without throwing) before a call exists.
The platform-native identifier of the call to transfer.
The transfer destination.
A real, two-way ITelephonyCallSdk over the native Twilio Programmable Voice + Media Streams path.
Gives the agent both hearing (inbound Media-Streams audio → the seam's audio callback) and a voice (sendAudioFrame → the native Media-Streams send path), plus working DTMF, transfer, and hangup. Construct via BindTwilioNativeCall (the factory the bridge's
SetSdkFactorywants), not directly, so config resolution + the lazy loader wire consistently.The adapter tracks the active Call SID so per-call REST/websocket operations can be addressed, and re-registers any handlers the bridge set before the call existed once a call comes online.