AddRecording
Start a new recording on a live call.
Stored Procedure-Specific Information
Start a recording on a live call.
To start the recording, you must specify the following Parameter: CallSid.
For example:
EXECUTE AddRecording CallSid='CA6cc04c10ed3cb8fa6b77c00b16560cbb', RecordingStatusCallbackEvent='in-progress ', RecordingStatusCallback='https://myapp.com/recording-events', RecordingStatusCallbackMethod='POST', Trim='do-not-trim', RecordingChannels='mono', RecordingTrack='both';
Input
| Name | Type | Required | Description |
| CallSid | String | True | The SID of the Call to associate the resource with |
| RecordingStatusCallbackEvent | String | False | The recording status events on which we should call the recording_status_callback URL. Allowed values are:in-progress,completed,absent |
| RecordingStatusCallback | String | False | The URL we should call using the recording_status_callback_method on each recording event specified in recording_status_callback_event. |
| RecordingStatusCallbackMethod | String | False | he HTTP method we should use to call recording_status_callback. Allowed values are: POST,GET |
| Trim | String | False | Whether to trim any leading and trailing silence in the recording. Allowed values are: trim-silence,do-not-trim |
| RecordingChannels | String | False | The number of channels used in the recording. Allowed values are: mono,dual |
| RecordingTrack | String | False | The audio track to record for the call. Allowed values are: inbound,outbound,both |
Result Set Columns
| Name | Type | Description |
| Success | String | Whether the recording has been created successfully or not. |
| AccountSid | String | The unique Id of the Account to which the validation request belongs. |
| Sid | String | The unique string that that we created to identify the Recording resource. |
| CallSid | String | The SID of the Call the Recording resource is associated with. This will always refer to the parent leg of a two-leg call. |
| ConferenceSid | String | The Conference SID that identifies the conference associated with the recording, if a conference recording. |