This is the current API V1 documentation. Explore our API V2 if you’d like to test new features.

Open SidemenuDocs
Close Sidemenu

How to configure an Elastix Version 5 Credentials Trunkhow-to-configure-an-elastix-version-5-credentials-trunk

How to configure an Elastix Credentials Trunk


3CXTelnyx Developers 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 connectionPORTAL 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 is not available from their website anymore but you can download a version of the ISO from our dropbox linkTelnyx Developers.


The same applies for the installation guide, they no longer have it available. However, our instructions below walk you through setup.

Select "Install 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.

Video Walkthroughvideo-walkthrough

Coming soon! This walkthrough will demonstrate setting up a credential based connection with Elastix 4. We'll also show you how to assign this connection to a newly purchased DID which will allow you to receive inbound calls. Then we'll walk you through how to assign the connection to an outbound profile such that you can make outbound calls!

Configuring Your Telnyx Mission Control Portalconfiguring-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 Guideelastix-4-setup-guide

Walkthrough Videowalkthrough-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.


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


IP Addressip-address

  1. 1Proceed to PBX -> Tools -> Asterisk File Editor and filter for the sip_nat.conf file.
  2. 2Enter in your own local network subnet and your external IP:
    • localnet=
    • externip=
  3. 3Click Save and then click Reload Asterisk.


SIP Extensionsip-extension

  1. 1Make your way to PBX -> PBX Configurations -> Extensions -> Add SIP Extension.
  2. 2Fill 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. 3Click submit and then apply config to apply the settings for this SIP extension.


PBX Trunk Setuppbx-trunk-setup

  1. 1In PBX Configurations make your way to Trunks. Configure your trunk details as below.
  2. 2Outgoing sip Settings for the trunk:
    • username=(your telnyx credentials based username)
    • secret(your telnyx credentials based password)
    • type=friend
    • insecure=port,invite
    • qualify=yes
    • disallow=all
    • allow=ulaw&alaw
  3. 3Inbound sip Settings for the trunk:
    • username=(your telnyx credentials based username)
    • secret=(your telnyx credentials based password)
    • type=friend
    • insecure=port,invite
    • qualify=yes
    • disallow=all
    • allow=ulaw
    • dtmfmode=rfc2833
    • nat=force_rport,comedia
  4. 4Registration string:
  5. 5Dialed 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. 6Click submit and apply config to configure the trunk settings.


Outbound Routes Setupoutbound-routes-setup

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


Inbound Routes Setupinbound-routes-setup

  1. 1In PBX Configurations make your way to Inbound Routes.
  2. 2Configure 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. 3Click 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 Resourcesadditional-resources

Review our getting started guide to make sure your Telnyx Mission Control Portal account is setup correctly!

Check out Elastix's help sectionTelnyx Developers for extra support!

Can't find what you're looking for?can-t-find-what-you-re-looking-for-

Our knowledge base is currently undergoing a makeover which will include more up to date videos to match our ever growing platform!

Can't find what you're looking for? Click the Live Chat icon at your lower right hand corner and start a chat!