The StartRecordCall
command records the current Call and returns the URL of a file containing the audio recording when recording completes.
StartRecordCall
is non-blocking. After recording of the current Call begins, control of the Call moves to the PerCL command that follows StartRecordCall
in the current PerCL script.
The recording information (the URL, duration, etc.) is returned when the Call ends in the statusCallbackUrl
request. For a Call created via the OutDial
command, the statusCallbackUrl
can be specified as a parameter of OutDial
. Otherwise, recording information is provided in the statusCallbackUrl
configured for the application.
Nesting Rules
No actions can be nested within StartRecordCall
and StartRecordCall
cannot be nested within any other actions.
Example
[
{
"StartRecordCall" : {}
}
]
Command Attributes
StartRecordCall
supports the following attributes that modify its behavior:
audioFormat
OPTIONALType: string
Default: FORMAT_ULAW
Valid values are: FORMAT_ULAW
and FORMAT_LINEAR16
.