recordCall
Start recording the call in the background. The conversation continues while recording is active.
For continuous call recording, omit initial_timeout and end_silence_timeout.
Those parameters are for voicemail-style recordings that automatically stop on
silence. Use stopRecordCall() to end continuous recordings.
Parameters
opts
Optional recording configuration.
opts.controlId
Identifier for this recording. Pass the same ID to stopRecordCall() to
stop this specific recording.
opts.stereo
Record in stereo (true) or mono (false).
opts.format
Recording file format.
"wav"— uncompressed WAV audio"mp3"— compressed MP3 audio
opts.direction
Audio direction to record.
"speak"— what the agent says"listen"— what the caller says"both"— both sides of the conversation
opts.terminators
DTMF digits that stop recording when pressed (e.g., "#").
opts.beep
Play a beep tone before recording starts.
opts.inputSensitivity
Input sensitivity level for the recording.
opts.initialTimeout
Seconds to wait for speech to begin before auto-stopping. Used for voicemail-style recordings.
opts.endSilenceTimeout
Seconds of silence after speech to wait before auto-stopping. Used for voicemail-style recordings.
opts.maxLength
Maximum recording duration in seconds.
opts.statusUrl
URL to receive recording status webhook events.
Returns
FunctionResult — this, for chaining.