Configuring 3CX to connect with Zentrunk

Overview

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 3CX up and running with Plivo as the external SIP gateway.

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

  1. Install 3CX on your environment.
  2. Create a Trunk on Zentrunk using Plivo Console.
  3. Configure an Outbound Trunk.
  4. Configure the Inbound Trunk.

Installation of 3CX

For more information on installing 3CX, see the following 3CX documents:

  • Supported Operating Systems for 3CX installation are listed here.
  • Follow the instructions given here to install 3CX on Windows.

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 an Outbound Trunk

Configuring your Outbound Trunk involves the following steps:

  1. Adding an Extension.
  2. Adding a Trunk.
  3. Adding Outbound rules.
  4. 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.

To add an extension

  1. From the Extension, click Add.
  2. On the Extensions page, in the General tab, enter the following details:
    • Extension - Name of the extension
    • First Name and Last Name are optional
    • Outbound Caller ID - CallerID for calls placed out on this trunk image alt text
  3. On the Extensions page, in the Options tab, uncheck the option Disallow use of extension outside the LAN (Remote extensions using Direct SIP or STUN will be blocked), and then click OK. image alt text

To add a trunk

  1. From your 3CX dashboard, click on SIP Trunks.
  2. On the SIP Trunks page, click Add SIP Trunk.
  3. On the Add SIP Trunk/VoIP Provider page, enter the following details:
    • Set Select Country to Generic
    • Set Select Provider in your Country to Generic SIP Trunk
    • Enter a trunk number in the Main Trunk No field. image alt text
  4. Click OK.
  5. Next, enter the trunk details Trunk Details
    • Name of Trunk: A friendly name for the trunk
    • Registrar/Server/Gateway Hostname or IP: Trunk domain from Plivo console
    • Outbound Proxy: Trunk domain same as Registrar/Server/Gateway Hostname or IP Authentication
    • Authentication ID (aka SIP User ID):User name associated with the trunk (If the trunk is auth based)
    • Authentication Password:Password associated with the trunk (If the trunk is auth based) image alt text
  6. In the Route calls to section, under Destination for calls outside office hours, select the extension created in the previous step for Destination for calls during office hours and Destination for calls outside office hours image alt text
  7. Next, on the Caller ID tab, enter the Configure Outbound Caller ID, and then click OK. image alt text

To add an outbound rule

  1. From your 3CX dashboard, click on Outbound Rules.
  2. In the outbound rules page, click on Add to add the outbound rules. image alt text
  3. In the Add Outbound Rule page, fill the following details
    • Rule name: Give a name to the outbound rule
    • Calls to numbers starting with the prefix: Specify the prefix to which outbound calls are allowed (Optional, leave blank if calls to all numbers need to be allowed)
    • Calls from extension(s): Mention the extension(s) from which calls needs to be allowed.
    • Calls to Numbers with a length of: Length of the number to which calls needs to be allowed (Ex: 12).
  4. Select the trunk for the routes in the Make outbound calls on section

Configuring an Inbound Trunk

Configuring your inbound Trunk involves the following steps:

  1. Adding an Extension.
  2. Adding a Trunk.
  3. 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.

To add an extension

  1. From your 3CX dashboard, choose Extensions and click Add.
  2. On the Extensions page, in the General tab, enter the following details:
    • Extension - Name of the extension.
    • First Name and Last Name are optional
    • Outbound Caller ID - CallerID for calls placed out on this trunk. image alt text Note: Make sure to note down the authentication details as it will be useful while configuring X-lite.
  3. On the Extensions page, in the Options tab, uncheck the Disallow use of extension outside the LAN (Remote extensions using Direct SIP or STUN will be blocked) option, and then click OK. image alt text

To add a trunk

  1. From your 3CX dashboard, click on SIP Trunks.
  2. On the SIP Trunks page, click Add SIP Trunk.
  3. On the Add SIP Trunk/VoIP Provider page, enter the following details:
    • Set Select Country to Generic.
    • Set Select Provider in your Country to Generic SIP Trunk.
    • Enter the inbound number on which you wish to receive calls in the Main Trunk No field. image alt text
  4. Click OK. Once this is done, it will be redirected to the general page.

  5. Here enter the trunk details Trunk Details:
    • Name of Trunk: A friendly name for the trunk.
    • Registrar/Server/Gateway Hostname or IP: (0.0.0.0 to receive calls from all IP’s).
    • Outbound Proxy: Trunk domain same as Registrar/Server/Gateway Hostname or IP Authentication.
    • Authentication ID (aka SIP User ID): User name associated with the trunk (If the trunk is auth based).
    • Authentication Password: Password associated with the trunk (If the trunk is auth based). image alt text
  6. In the Route calls to section, under Destination for calls outside office hours, select the extension created in the previous step for Destination for calls during office hours and Destination for calls outside office hours. image alt text

Receive an inbound call

You can receive calls when the account is successfully enabled on X-Lite. Dial the number attached to your inbound trunk. The calls will first hit the Plivo inbound zentrunk, and then go through your 3CX to reach your endpoint.

To know more about configuring X-lite for Inbound calls, check the X-lite configuration guide