• Choose:

Configure an Elastix v4 Trunk

Intro To Elastix 4

Elastix is a high-performance turnkey PBX that’s easy to install and manage. Powered by 3CX you get a complete unified communications solution with softphones included for Android, iOS, Windows and Mac as well as a web-client. Supported IP Phones, Trunks and gateways are all automatically configured with inbuilt templates. You also get integrated WebRTC video conferencing for free. Available on-premise on Windows, Linux, Raspberry Pi or in the Cloud.

You'll need to have created a credentials based connection on your Telnyx Mission Control Portal account, assigned this connection to a DID and outbound profile in order to make and receive calls.

Elastix 4 Prerequisites

  1. Download Elastix 4 - Elastix 4 is not available from their website anymore but you can download a version of the ISO from our dropbox link.
  2. Installation The same applies for the installation guide, they no longer have it available. However, our instructions below walk you through setup.

Installing Elastix 4


Once you reached to Centos installation summary you need to configure the following:

  • Date and Time according to your time zone
  • Install Destination (Select the Hard drive we created for this virtual machine)
  • Keyboard
  • Network and Hostname - make sure to turn this on.


Once you've selected the appropriate configuration for each, begin installation will appear and you should select this.

  • You'll then be prompted to configure the user settings.


Please ensure you enter a root password and create a user. You will need these for later on so please remember them.

While you complete these two options, the installation will continue as normal until it finishes.

Now enter your SQL root password and admin password which are used to login to the graphical user interface.



Now your virtual machine will reboot and you should now be able to login as root and Web Gui admin.


To access your Elastix system, copy the URL which is displayed for you in the above picture. Input this URL into your browser to access the graphical user interface.


Once you enter your username and password, you'll be brought to the Elastix system.

Configuring Your Telnyx Mission Control Portal

For step by step instructions on each of the requirements on the Telnyx Mission Control Portal, please follow this guide.

Once you've configured your Telnyx account, you can now proceed to setup Elastix following the guide below.

Elastix 4 Setup Guide

Walkthrough Video

You are now all set on the Mission Control Portal side and are ready to configure your Telnyx trunk within your Elastix 4 system.

Please see the video walkthrough below:

Screenshots for the settings are also provided below.

Elastix Dashboard

You'll be brought to the Elastix homepage, once you login, as seen below.


IP Address

  1. Proceed to PBX -> Tools -> Asterisk File Editor and filter for the sip_nat.conf file.
  2. Enter in your own local network subnet and your external IP:

    • localnet=
    • externip=
  3. Click Save and then click Reload Asterisk.


SIP Extension

  1. Make your way to PBX -> PBX Configurations -> Extensions -> Add SIP Extension.
  2. Fill in the information you see from the below screenshot, anything else can be left blank for now unless it is a requirement of yours.
    Please note: Outbound CID should be the number you purchased with Telnyx that you want to assign for this extension. Please remember to use the user extension and password along with the internal IP of your Elastix server so you can then register this SIP extension.
  3. Click submit and then apply config to apply the settings for this SIP extension.


PBX Trunk Setup

  1. In PBX Configurations make your way to Trunks. Configure your trunk details as below.
  2. Outgoing sip Settings for the trunk:

    • username=(your telnyx credentials based username)
    • secret(your telnyx credentials based password)
    • host=sip.telnyx.com
    • type=friend
    • insecure=port,invite
    • qualify=yes
    • disallow=all
    • allow=ulaw&alaw
  3. Inbound sip Settings for the trunk:

    • username=(your telnyx credentials based username)
    • secret=(your telnyx credentials based password)
    • fromdomain=sip.telnyx.com
    • host=sip.telnyx.com
    • type=friend
    • insecure=port,invite
    • qualify=yes
    • disallow=all
    • allow=ulaw
    • dtmfmode=rfc2833
    • nat=force_rport,comedia
  4. Registration string:

  5. Dialed number manipulation rules:

    • prepend:1; match pattern: NXXNXXXXXX
    • prepend: blank; match pattern: 1NXXNXXXXXX

    The above dial patterns are for dialing 10 and 11 digit destinations, your own dial patterns may differ.

  6. Click submit and apply config to configure the trunk settings.


Outbound Routes Setup

  1. In PBX Configurations make your way to Outbound Routes. Configure your outbound route details as below.
  2. Add the route name, Route CID, dial patterns and assign the trunk sequence as Telnyx.
  3. Click submit and apply config to configure the trunk settings.


Inbound Routes Setup

  1. In PBX Configurations make your way to Inbound Routes.
  2. Configure your inbound route details as below and in the image.

    • Add the description of the inbound route name.
    • Add the DID number for your inbound calls.
    • Add the extension you want to assign when inbound calls are received to the DID specified
  3. Click submit and apply config to configure the trunk settings.


That's it, you've now completed the configuration of Elastix 4 IP-PBX Trunk and can now make and receive calls by using Telnyx as your SIP provider!

Additional Resources

Still need help setting up Elastix Version 14? Click the Live Chat icon at your lower right hand corner and start a chat!

Was this page helpful?