Call Control
Control active calls in real time. Hold, resume, transfer, and inject DTMF tones. All endpoints require the call to be in active (in_progress) status.
Hold a Call
Pause media on both sides of an active call.
Response:
Resume a Call
Resume a previously held call.
Response:
Transfer a Call
Transfer an active call to another phone number. The destination must be in E.164 format.
Response:
Send DTMF Tones
Inject DTMF digits into an active call. Useful for navigating IVR menus or entering PINs programmatically.
Response:
Error Handling
- 400 Bad Request —
destination(transfer) ordigits(DTMF) is missing or empty. - 404 Not Found — The
call_iddoes not exist, belongs to a different workspace, or the call has already ended and been removed from the active session map. - 500 Internal Server Error — The voice controller is not configured or unreachable, or the call is in an unexpected state (e.g., trying to resume a call that is not currently held).
All call control endpoints require the call to be active. Attempting to control a completed call returns 404.