Skip to main content
Configuring an Elastix 4 PBX IP Trunk

In this article we will explain how to configure an Elastix 4 PBX IP trunk with Telnyx.

C
Written by Customer Success
Updated over 9 months ago

With Elastix you can build the ideal PBX for your business whatever its size or requirements; you choose how to deploy depending on what you and your business needs from its communications platform. Whether you want an on-premise Linux PBX, to install on Windows, or you prefer to self host your phone system in YOUR cloud with your own cloud account, the choice is yours.

Additional documentation:


Instructions for Configuring Elastix

In this activity you will:

Pre-requisites

Video walkthrough

Setting up your Telnyx SIP portal account so you can make and receive calls:

Configuring Elastix 4

1. Install Elastix 4

As the provider no longer supports Elastix, we will provide you with an installation guide.

  1. Run the Elastix installer.

    An interface showing the Elastix installer.

  2. Once you reach the Centos installation summary, provide the following information:

    1. Date and Time according to your time zone

    2. Install Destination (Select the Hard drive we created for this virtual machine)

    3. Keyboard

    4. Network and Hostname - make sure to turn this on.

      Centos installation summary page.

  3. Once you've entered the appropriate configuration settings, click Begin Installation at the bottom.

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

    centos installation configuration page.

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

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

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

    Elastix password configuration screen 1
    Elastix password configuration screen 3

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

    An interface showing the virtual machine reboot.

  9. 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 GUI.

    Elastix system login interface.

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

2. Add a SIP trunk

In this section, you'll configure your Elastix 4 PBX to work with Telnyx. You can follow these steps, or use the video walkthrough.

  1. Log into your Elastix GUI. You'll be on the homepage.

    Elatix GUI homepage interface.

  2. From the left-hand navigation, go to PBX > Tools > Asterisk File Editor and filter for the sip_nat.conf file.

  3. Enter in your own local network subnet and your external IP in the fields labeled:

    1. localnet=

    2. externip=

  4. Click Save and then click Reload Asterisk.

    An Asterisk File Editor interface.

  5. Now make your way to PBX > PBX Configurations > Extensions > Add SIP Extension and enter the following information. Anything not specified can be left blank unless it's a requirement of yours.

    1. User Extension: The extension you wish to use for this trunk

    2. Display Name: Enter a name that makes sense.

    3. Outbound CID: 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.

    4. Asterisk Dial Options: tr

    5. Queue State Detection: Use state

    6. Secret: Your Telnyx account password for this extension

    7. DTMFmode: RFC 2833

    8. NAT: No- RFC 3581

      An interface to add SIP Extension.
  6. Click Submit, then Apply Config.

  7. From the left-hand navigation, stay on PBX > PBX Configurations and click on Trunks.

  8. Add the following settings to you trunk details:
    ​
    ​Outgoing SIP Settings for the trunk:

    1. Host: sip.telnyx.com

    2. Type: peer

    3. Qualify: Yes

    4. Disallow: All

    5. Allow: ulaw & alaw

  9. Inbound sip Settings for the trunk:

    1. Host: sip.telnyx.com

    2. Type: friend

    3. Insecure: port,invite

    4. Disallow: All

    5. Allow: ulaw

    6. DTMFmode: RFC 2833

    7. NAT: force_rport,comedia

    8. Registration string: Leave blank. This is an IP trunk for an IP-based connection so you will not need this.

    9. Dialed number manipulation rules: prepend:1; match pattern: NXXNXXXXXX
      prepend: blank; match pattern: 1NXXNXXXXXX
      ​
      ​Note: The above dial patterns are for dialing 10 and 11 digit destinations, your own dial patterns may differ.

      A page for inbound sip settings for the trunk.

  10. Click Submit and Apply Config.


3. Configure outbound rules

In this section, you'll configure the outbound calling rules that will manage your outgoing calls.

  1. From the left-hand navigation, make your way to PBX > PBX Configurations and click on Outbound Routes, then Add Route and provide the following information:

    1. Route Name: Choose a name that makes your route easily identifiable.

    2. Route CID: The number you purchased with Telnyx that you want to assign to this route.

    3. Dial Patterns: Enter your dial patterns here. Use as many as necessary.

    4. Trunk Sequence: Telnyx

    5. If you require configuration of any additional fields, you can configure these as needed.

      PBX configurations' page for outbound routes.

  2. Click Submit and Apply Config to configure the trunk settings.


4. Configure inbound rules

In this section, you'll configure the inbound calling rules that will manage your incoming calls.

  1. From the left-hand navigation, make your way to PBX > PBX Configurations and click on Inbound Routes, then Add Incoming Route and provide the following information:

    1. Description: A description of your route that makes it easily identifiable

    2. DID Number: The number you purchased with Telnyx that you want to assign to handle inbound calls.

    3. Extensions: Any extensions that you need to register for your inbound calling.

    4. If you require configuration of any additional fields, you can configure these as needed.

      PBX configurations' page for inbound routes.

  2. Click Submit and Apply Config.

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

Review our getting started with guide to make sure your Telnyx Mission Control Portal account is set up correctly.

Additionally, you can check out:

Did this answer your question?