Call Commands
Streaming start
Start streaming the media from a call to a specific WebSocket address or Dialogflow connection in near-realtime. Audio will be delivered as base64-encoded RTP payload (raw audio), wrapped in JSON payloads.
Please find more details about media streaming messages specification under the link.
post/calls/{call_control_id}/actions/streaming_start
Path parameters
call_control_idstring required
Unique identifier and token for controlling the call
Request body
Example request
{
"client_state": "aGF2ZSBhIG5pY2UgZGF5ID1d",
"command_id": "891510ac-f3e4-11e8-af5b-de00688a4901",
"dialogflow_config": {
"analyze_sentiment": false,
"partial_automated_agent_reply": false
},
"enable_dialogflow": false,
"stream_track": "both_tracks",
"stream_url": "wss://www.example.com/websocket"
}Response
Successful response upon making a call control command.
Example response
{
"data": {
"result": "ok"
}
}