Skip to main content

$dialer.getCallRecordingPath

This method returns the path to the current call recording.

caution
To download call recordings, enable the Record calls option in the phone channel settings.

Syntax

The method is called without arguments and returns a string containing the relative path to the file on the server where the project is hosted:

$dialer.getCallRecordingPath(); // => Example: "242829491/2019-06-18/16505130514/16:56:31.55-1P"

URL template

The absolute call recording file URL conforms to the following template:

https://{host}/restapi/download/{projectId}/recordings/call/{callRecordingPath}

Here,

  • host is the domain where the project is hosted, e.g. platform.tovie.ai.
  • projectId is the project identifier, e.g. 242829491.
  • callRecordingPath is the value returned by $dialer.getCallRecordingPath.
caution

You can download the recording from this link only when you are authorized in the platform. An account must have an appropriate role.

To download recordings without authorization, use the $dialer.getCallRecordingFullUrl method.