Stream with Record
You can use the <Record> and <Stream> elements together to simultaneously record a call and stream its audio to a WebSocket in real-time. This is useful for applications that require both persistent storage of the call audio and live processing, such as real-time transcription and analysis.
Stream with Record XML
Stream with Record
<Response>
<Play>https://www.vobix.com/test/62801/play.wav</Play>
<Record action="http://vobiz-callback/api/v1/test.xml" redirect="false" recordSession="true" maxLength="3600"/>
<Stream streamTimeout="10" contentType="audio/x-l16;rate=16000" keepCallAlive="true" bidirectional="true">ws://sipp.voice.vobizdev.com:19092/ws</Stream>
<Play>https://www.vobix.com/test/62801/play.wav</Play>
</Response>Record Event Callback Parameters
The Record event will go to the callback URL once recording starts on the call. The recording will be accessible via media.vobiz.ai after the recording is complete.
| Parameter | Description |
|---|---|
Digits | Digits pressed during the call. |
From | The calling party number. |
RecordingID | The unique ID for the recording. |
RecordFile | The URL of the recorded file. |
RecordingEndMs | The timestamp when the recording ended. |
BillRate | The billing rate for the call. |
To | The called party number. |
RecordingDurationMs | The duration of the recording in milliseconds. |
CallUUID | The unique ID for the call. |
ALegRequestUUID | The request UUID for the A leg of the call. |
SessionStart | The timestamp when the session started. |
Direction | The direction of the call (inbound or outbound). |
RecordUrl | The URL of the recorded file. |
RecordingDuration | The duration of the recording in seconds. |
ALegUUID | The unique ID for the A leg of the call. |
CallStatus | The status of the call. |
ParentAuthID | The parent authentication ID. |
RequestUUID | The unique ID for the request. |
Event | The event type (Record). |
RecordingStartMs | The timestamp when the recording started. |
Stream with Record & Callback URL XML
Stream with Record and Callback URL
<Response>
<Play>https://www.vobix.com/test/62801/play.wav</Play>
<Record callbackUrl="http://vobiz-callback/api/v1/test.xml" action="http://vobiz-callback/api/v1/test.xml" redirect="false" recordSession="true" maxLength="3600"/>
<Stream streamTimeout="10" contentType="audio/x-l16;rate=16000" keepCallAlive="true" bidirectional="true">ws://sipp.voice.vobizdev.com:19092/ws</Stream>
<Play>https://www.vobix.com/test/62801/play.wav</Play>
</Response>RecordStop Event Callback Parameters
A RecordStop event will be posted to the callbackUrl when the recording is stopped.
| Parameter | Description |
|---|---|
From | The calling party number. |
RecordingID | The unique ID for the recording. |
RecordFile | The URL of the recorded file. |
RecordingEndMs | The timestamp when the recording ended. |
BillRate | The billing rate for the call. |
To | The called party number. |
RecordingDurationMs | The duration of the recording in milliseconds. |
CallUUID | The unique ID for the call. |
ALegRequestUUID | The request UUID for the A leg of the call. |
SessionStart | The timestamp when the session started. |
Direction | The direction of the call (inbound or outbound). |
RecordUrl | The URL of the recorded file. |
RecordingDuration | The duration of the recording in seconds. |
ALegUUID | The unique ID for the A leg of the call. |
CallStatus | The status of the call. |
ParentAuthID | The parent authentication ID. |
RequestUUID | The unique ID for the request. |
Event | The event type (RecordStop). |
RecordingStartMs | The timestamp when the recording started. |