The wss://… media endpoint Vonage connects the call's audio to.
The wire content-type (defaults to audio/l16;rate=8000 — 8 kHz linear, the PSTN rate).
Optionalheaders: Record<string, unknown>Optional metadata headers Vonage forwards on the websocket handshake.
The NCCO document (a JSON array of actions) to return to Vonage.
Builds the NCCO (Nexmo Call Control Object) that opens a bidirectional WebSocket media leg to the agent's media endpoint — the Vonage analogue of Twilio's
<Connect><Stream>. Aconnectaction with awebsocketendpoint is the full-duplex form: Vonage streams inbound caller audio to the socket AND plays back outbound audio frames the agent writes — the leg the agent needs.Pure + exported so it unit-tests with no network and the MJAPI
POST /telephony/vonage/answerrouter can return it verbatim.