Accepts the Media-Streams websocket for an already-delivered inbound Call SID.
Places the outbound call (REST calls.create with a <Connect><Stream> TwiML). Resolves the Call SID.
Ends the call (REST calls(sid).update({ status: 'completed' })).
Registers the inbound Media-Streams audio callback. "Latest handler wins."
Registers the call-ended callback (status-callback completed/failed or stream stop).
Registers the inbound DTMF callback (<Gather> results or Media-Streams dtmf events).
Pushes one outbound PCM frame onto the call's Media-Streams websocket — the agent's voice.
Sends DTMF digits on the call (REST <Play digits> / <Dial sendDigits>).
Transfers the live call (REST calls(sid).update({ twiml: '<Dial>...' })).
The live native-call client the adapter hands back. The surface mirrors ITelephonyCallSdk but in the native adapter's own (lower-cased) vocabulary; this adapter maps between the two. VERIFY against the native Twilio adapter.