Configuring FusionPBX to connect with Zentrunk

Zentrunk is a SIP Trunking service from Plivo that allows you to connect with fixed and mobile phones in over 200 countries. Connect your cloud or on-premise communication infrastructure to Plivo’s Zentrunk SIP Trunking service to connect to your customers easily.

This documentation provides a basic configuration to get FusionPBX up and running with Plivo as the external SIP gateway.

To get started with Zentrunk using FusionPBX you would need to do the following:

  1. Install FusionPBX on your environment.
  2. Create a Trunk on Zentrunk using Plivo Console.
  3. Configure Outbound Gateway on FusionPBX to connect to the Trunk created in the previous step.

Installation of FusionPBX

For more information on installing FusionPBX, see the following FusionPBX documents:

  • Follow the instructions here to install FusionPBX on Debian.
  • Follow the instructions here to install FusionPBX on CentOS/Ubuntu.

Create a Trunk on Zentrunk

You can create a trunk using Plivo Console. For more information on creating a Trunk on Plivo Console, see Getting Started with Zentrunk.

Configuring Outbound Gateway(Trunk) on FusionPBX

Configuring your Outbound Trunk involves the following steps:

  1. Set IP of FusionPBX server - from local to public
  2. Configuring an Extension
  3. Adding a Gateway
  4. Adding Outbound Routes
  5. Configuring X-Lite

Note: There are many softphones that you can use (for example, X-Lite, Blink for Linux, etc). In this tutorial, we will be using the X-Lite Softphone.

Set IP of FusionPBX server

  1. From the dashboard, hover over the Advanced menu, and then click Variables.
  2. On the Variable page, go to IP Address section and change the following variables :
    • external_rtp_ip: curl -s http://instance-data/latest/meta-data/public-ipv4
    • external_sip_ip: curl -s http://instance-data/latest/meta-data/public-ipv4

image alt text

To add an extension

  1. From the Accounts menu, click Extensions.
  2. On the Extensions page, click + to add an extension. The Add SIP Extension page appears. image alt text
  3. Add the Extension, and then click Save. Note: Extension is the extension number to dial to reach the user.
  4. Enter the password for the extension. Note: This will be the password configured for the device.
  5. Once done, click Save.

Your extension is created.

To add a Gateway

  1. From your FusionPBX dashboard, hover over the Accounts menu, and then click Gateways.
  2. On the Gateways page, click + to add a gateway.
  3. On the Add Gateway page, enter the following details:
    • Gateway: A friendly name for the trunk (for example, demo-gateway)
    • Username: Username for TestAuthGroup
    • Password: Password for TestAuthGroup
    • Proxy: Termination SIP Domain of your Plivo Trunk
  4. Once done, click Save.

A gateway will be created. You must now configure an outbound route to this gateway.

To add an outbound route

  1. From the Dialplan menu, click Outbound Routes.
  2. On the Outbound Routes page, click + to add an outbound route. image alt text
  3. On the Outbound Route - Add Route page, enter the following details:
    • Gateway: Select the gateway you created in the previous section (demo-gateway).
    • Dialplan Expression: Select International from the drop-down list.
  4. Once you have entered your dial pattern, click SAVE.

The outbound route will be configured to your gateway.

To configure X-Lite

  1. Download and install X-Lite.
  2. On X-Lite, navigate to Preferences.
  3. On the Accounts tab, click Add Account, and then click New SIP Account.
  4. Enter the User ID and Authorization name. Note: Use the extension name for the User ID and Authorization name.
  5. In the Domain field, enter the domain of your FusionPBX machine.
  6. In the Password field, enter the password for your extension.
  7. Once you have configured X-Lite, click OK.

Your endpoint entry will be displayed in the Accounts tab. If all configuration details are accurate, the status will show the account as enabled.