IVR Canvas

Guide

Deploy a call flow to 3CX v20 through the XAPI, without the console

Since version 20, 3CX exposes a configuration API, the XAPI, that can take a call flow app and compile it. IVR Canvas uses it to deploy your flows directly. It has to be set up once per server.

What you need

  • A 3CX version 20 with an Enterprise licence: the XAPI is only open with that licence.
  • Access to the 3CX admin console, with an administrator account.
  • A 3CX reachable from the Internet, with a valid certificate: IVR Canvas does not reach a private address.
  • An IVR Canvas account with the licence: the free plan does not deploy.

Without an Enterprise licence, direct deployment is not possible: export the ZIP package from IVR Canvas and upload it in the console, Advanced > Call Flow Apps.

Create the API client in the 3CX console

  1. In the 3CX admin console, open Integrations > API and click Add.
  2. Give the client a number and a name, pick the System Administrator role and tick “3CX Configuration API Access (XAPI)”.
  3. Save, then copy the secret key shown: 3CX shows it only once.
  4. If the console is filtered by IP address (Settings > Security > Console Restrictions), add the IVR Canvas address shown on the 3CX servers page: otherwise 3CX denies access.

Add the server in IVR Canvas

  1. In IVR Canvas, open 3CX servers and add a server.
  2. Type the console address with its port (for example https://pbx.example.com:5001), the client ID and its secret key.
  3. Test the connection: “Connection works” means IVR Canvas reads the call flow apps of this 3CX, and deployments will work.
Adding a 3CX server in IVR Canvas: the console address, the client ID, the secret key and a working connection

The key is kept in the account secrets, encrypted by your browser: it is never stored in clear. With environments, each environment has its own server: test and production.

Deploy and compile

In the project, “Deploy to 3CX” asks for a version description, then runs three steps:

  1. Saving and creating the frozen version: that is the one deployed, and the one you can come back to.
  2. Preparing the package, with the values of the chosen environment.
  3. Deploying and compiling on the 3CX, which can take up to a minute. An app with the same extension number is replaced; otherwise it is created.
The IVR Canvas deployment: the call flow deployed and compiled on the 3CX server, and the last two deployments

If 3CX refuses to compile, the previous version of the app stays live and IVR Canvas shows what the compiler says. A rollback deploys a frozen version again as it was.

When the deployment fails

MessageWhat to check
The 3CX cannot be reachedThe address and port are those of the console (for example :5001); the 3CX is reachable from the Internet; no firewall blocks IVR Canvas.
3CX certificate refusedThe certificate is valid and not expired; the address uses the certificate name, not an IP address.
Sign-in refused by the 3CXThe client ID and key are right; the client has XAPI access; the licence is Enterprise.
The 3CX denies accessThe client has the System Administrator role; the IVR Canvas address is allowed in Console Restrictions.
Extension number already takenAn extension, a queue or another app already uses that number: change it in the project settings.
The package is over 10 MBRemove audio files, or export the package as a ZIP for the console.

Errors in the flow itself are stopped earlier: the project is neither exported nor deployed while any remain. They are listed in 3CX call flow compile errors.

Questions

Does direct deployment work with 3CX v18?

No: it goes through the 3CX v20 XAPI. On another version, export the package and upload it in the console.

Do I have to give the 3CX administrator password?

No. IVR Canvas uses the API client you create, with its ID and key; you can delete it at any time in Integrations > API.

Try IVR Canvas.

€0 · 10 projects, no credit card.