Skip to main content

$dialer.getCallRecordingFullUrl

This method returns a URL for downloading 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 with the call recording download URL:

$dialer.getCallRecordingFullUrl();

URL template

The file download URL conforms to the following template:

https://{host}/api/recordings/token/{token}/download/call?sessionId={sessionId}

Here,

  • host is the domain where the project is hosted, e.g. app.jaicp.com.
  • token is the token for downloading call recordings from the current project.
  • sessionId is the current call session identifier.
caution

You can download the recording from the link without authorization in the platform. To get the link that requires authorization, use the $dialer.getCallRecordingPath method.

If JAICP is installed in your infrastructure, we recommend monitoring requests to any URLs of the https://{host}/api/recordings/token/… format or limiting access to them.


FAQ

I can’t download the file from this link

Question: I can’t download a call recording from a link obtained using $dialer.getCallRecordingFullUrl() (or another way). Why?

Answer: You may be trying to download a file immediately after the call ends.

The system takes some time to make the audio recording available after a call. This may take up to several minutes. The file will be available via the link for at least six months.