Skip to main content
The Record element records a call or conference. Use action for the initial recording event and callbackUrl for the completed recording event and ready file information.

Attributes

Parameters sent to the action URL

Vobiz requests action near the start of recording. The request includes the standard call parameters and the recording identifier. Other recording fields may be absent or incomplete in the action request. Do not use this request as proof that recording has finished or that the file is ready.

Parameters sent to the callback URL

Vobiz sends Event=RecordStop to callbackUrl after recording finishes. Use this request for completed recording metadata. Possible RecordingEndReason values include:
  • RecordingTimeout: silence reached the configured timeout
  • maxLength: recording reached the configured maxLength
  • FinishedOnKey: the caller pressed a configured finishOnKey
  • HungUp: the call ended

Parameters sent to the transcription URL

Examples

Record a voicemail message

Speak a prompt, then record until the caller stays silent, presses a key, or hits maxLength. See Record a voicemail.

Record the entire call session

Set recordSession="true" to capture the full call (including subsequent Speak, Play, and bridged audio). The recording ends when the call hangs up.
Place the self-closing <Record/> before <Dial> so whole-session recording starts before the bridge. The final RecordStop callback includes the completed duration and recording file information.

Record the answered leg of an outbound dial

Nest Record with startOnDialAnswer="true" so recording begins only once the called party answers.

Completed recording webhook sent to callbackUrl

After recording ends, Vobiz posts RecordStop, the standard call parameters, and final recording metadata to callbackUrl. Use action only for the earlier recording event and RecordingID.
Completed recording

Edge cases and tips

  • timeout vs maxLength. timeout ends the recording after a stretch of silence (default 60 s) and is not a total cap. maxLength is the hard ceiling on recording length (default 60 s). Set maxLength generously for voicemails so callers are not cut off mid-sentence. The RecordingEndReason parameter tells you which limit fired (RecordingTimeout, maxLength, FinishedOnKey, or HungUp).
  • action and callbackUrl serve different stages. action receives the initial recording event and identifier. callbackUrl fires after recording stops with final duration and file information. A recordSession="true" flow can use callbackUrl without action.
  • Use the completion callback for the file. Process or download the recording after callbackUrl receives RecordStop with RecordFile or RecordUrl.
  • finishOnKey defaults to all keys. By default any of 1234567890*# stops the recording. Narrow it (for example finishOnKey="#") if callers might press other digits during their message.
  • recordSession vs a standalone Record. Use recordSession="true" to capture the whole call for compliance; use a standalone Record element to capture a single message (voicemail) and then continue the flow.
  • Compliance. Announce recording before it starts where required by law (for example, two-party-consent jurisdictions and TRAI rules in India). Use a Speak/Play before Record or set playBeep="true".