Configuring an Elastix 4 PBX Trunk

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

C
Written by Customer Success
Updated over a week 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.

    Elastix 4 installer page.

  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 page for user settings.

  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.

    SQL Administration credentials page.
    SQL Administration credentials page 2.

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

    Web GUI Admin page.

  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.

    GUI credentials submission page.

  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.

    Elastic GUI homepage.

  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.

    Asterisk file and reload page.

  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

      Page for adding 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. Username: Your Telnyx account username

    2. Secret: Your Telnyx account password

    3. Host: sip.telnyx.com

    4. Type: friend

    5. Insecure: port, invite

    6. Qualify: Yes

    7. Disallow: All

    8. Allow: ulaw & alaw

    Inbound sip Settings for the trunk:

    1. Username: Your Telnyx account username

    2. Secret: Your Telnyx account password

    3. Fromdomain: sip.telnyx.com

    4. Host: sip.telnyx.com

    5. Type: friend

    6. Insecure: port,invite

    7. Qualify: Yes

    8. Disallow: All

    9. Allow: ulaw

    10. DTMFmode: RFC 2833

    11. NAT: force_rport,comedia

    12. Registration string: your_username:your_password@sip.telnyx.com

    13. 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.

      Inbound sip settings page for the trunk.

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

      Outbound rules configuration portal.

  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.

      Inbound rules configuration portal.

  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?