Skip to main content

Configuring Recording Storage using Google (Cloud Storage with a Service Account or Google Drive with a Personal Account)

Storing files in Google Drive can be done in two ways: using a Service Account (when you have Google Workspace) or using a Personal Account (when you have the normal @gmail.com email)

Service Account

Accessing Google Drive is not simple, but I agree with Google about being extremely careful in sharing the Google Drive content. I prefer to use the Service Account to handle the recording storage.

Go in the Google console from the account you want to use for storage

https://console.cloud.google.com/

Let's start by checking if the Google Drive API is enabled in "Enabled APIs and services" for your project. If not enabled, please enable it.

From the APIs and services page, choose "Credentials" and create a Service Account.

The service account has two parts: an email like mirtapbx@resolute-tracer-400008.iam.gserviceaccount.com and a JSON file you need to use as credentials.

Locate the directory you want to use as recording storage in your Google Drive and share it with the service account email above created. It needs to have full access to it.

Access the directory and check the ID of the folder. You can see in the URL, like

https://drive.google.com/drive/folders/1rfOYcmUcoZOTYmioiDtbIuXmI62W5sz7

In MiRTA PBX configuration, you need to enter the folder ID and the content of the JSON file you have downloaded.

Canistracci OIL example screen for Configuring Recording Storage using Google Drive.
Canistracci OIL example screen for Configuring Recording Storage using Google Drive.

Validation

  • Confirm the tenant selected in the top bar is Canistracci OIL before creating the example.
  • Verify the created objects appear in the expected Configuration menu page.
  • Place a controlled test call or run the related status check.
  • Remove or disable temporary test numbers when the example is no longer needed.