Use this method to programmatically answer an inbound call. Make sure you’ve configured the inbound call webhook on a number using API or GUI. If configured, Wavix posts call status updates to the webhook associated with the number.
Optionally, you can immediately start call media streaming when the inbound call is answered. To start streaming, paste the following JSON in the request body. Wavix will start media streaming to a WebSocket URL specified in the request.
{
"stream_channel": "inbound",
"stream_type": "twoway",
"stream_url": "wss://your-websocket-server-url-and-port"
}
An API key to authorize your request
Call ID.
Answer call request parameters
Indicates whether the call should be recorded
Indicates whether the call is transcribed after it ends
WebSocket URL for call streaming
"wss://examples.com/stream"
Specifies the streaming type. Can be either oneway for unidirectional or twoway for bidirectional streaming.
oneway, twoway "twoway"
Specifies which audio channel to stream.
Use inbound to stream the incoming channel (to Wavix), outbound for the outbound channel (from Wavix), or both to stream both.
For bidirectional call streaming, this setting is ignored and the inbound channel is only streamed.
inbound, outbound, both "inbound"
Call successfully answered.
true