Accepts the websocket media leg for an inbound call already delivered by the answer webhook.
The inbound call UUID from the webhook.
Places an outbound call via the Vonage Voice API (POST /v1/calls) with an NCCO that connects a
bidirectional websocket to the agent's media leg.
Destination number (E.164).
The agent's Vonage number / verified caller-id the call originates from.
Optionalargs: Record<string, unknown>Provider-specific options (event-webhook URL, websocket media URL, recording flags, …).
The created call UUID.
Ends the call (Voice API PUT /v1/calls/:uuid with { action: 'hangup' }).
The call UUID to hang up.
Registers the call-ended callback (event-webhook completed/failed/rejected/cancelled or the
websocket close event).
The call UUID.
Invoked when the call ends.
Registers the inbound DTMF callback (NCCO input/dtmf results delivered to the event webhook).
The call UUID.
Invoked with each received DTMF digit string.
Registers the inbound websocket audio callback for the call (what the agent hears).
The call UUID whose inbound media to subscribe to.
Invoked with each inbound PCM audio frame.
Sends DTMF digits on the call (Voice API PUT /v1/calls/:uuid/dtmf with { digits }).
The call UUID.
The DTMF digit string.
Pushes one outbound audio payload onto the call's websocket media leg (the agent's voice).
The call UUID whose media leg to write to.
The audio bytes (the adapter encodes to the websocket media frame).
Transfers the live call (Voice API PUT /v1/calls/:uuid with { action: 'transfer', destination: { type: 'ncco', ncco: [...] } }).
The call UUID to redirect.
The transfer destination.
Production IVonageClientBindings over the real Vonage Voice API + WebSocket media, expressed against the injected IVonageVoiceLike / IVonageMediaPump surfaces so it builds and unit-tests with no
@vonage/server-sdkinstall and no network.createCall→ Voice RESTcreateCallwith the NCCOconnectwebsocket action.acceptInbound→ no REST call (the answer webhook already returned the connect NCCO); the websocket for the delivered call UUID is what "accepting" means — handled by onWebsocketAudio.hangupCall/transferCall/playDigits→ Voice REST.pushWebsocketAudio/onWebsocketAudio→ WebSocket media frames, transcoded through the T0 codec.