AddRecording
Starts a new recording on a live call.
Stored Procedure-Specific Information
To run this procedure, you must specify the following parameter: CallSid. For example:EXEC 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 recording with. |
| RecordingStatusCallbackEvent | String | False | The recording status events on which to call the recording_status_callback URL. Allowed values are:in-progress,completed,absent |
| RecordingStatusCallback | String | False | The URL to call using the recording_status_callback_method on each recording event specified in recording_status_callback_event. |
| RecordingStatusCallbackMethod | String | False | The HTTP method to use when calling recording_status_callback. Allowed values are: POST,GET |
| Trim | String | False | Indicates 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 | Indicates whether the recording was created successfully. |
| AccountSid | String | The unique Id of the account associated with the recording. |
| Sid | String | The unique string that identifies the recording resource. |
| CallSid | String | The SID of the call the recording resource is associated with. This always refers 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. |