This is the API V2 documentation. To switch out of beta revert back to our API V1.

Open SidemenuDocs
Docs
Close Sidemenu
Choose:
CredentialsIP
CredentialsIP

Configuring a FreePBX Version 13 Trunkconfiguring-a-freepbx-version-13-trunk

Intro To FreePBX v13

FreePBXTelnyx Developers is a web-based open source graphical user interface GUI. FreePBX control and manage Asterisk (PBX), an open source communication server. FreePBX can be installed manually or as part of the pre-configured FreePBX Distro that includes the system OS, Asterisk, FreePBX GUI and assorted dependencies.

To use FreePBX, you'll first need to create a Credential based connection in the Mission Control Portal. Once you've created a connection, you'll need to assign it to a DID and an outbound profile so you can start making and receiving calls.


FreePBX v13 Prerequisitesfreepbx-v13-prerequisites

  1. 1DownloadTelnyx Developers FreePBX v13.
  2. 2Install Freepbx as per the guideTelnyx Developers.
  3. 3ConfigureTelnyx Developers your Telnyx portal.

You're now ready to setup FreePBX v13 Trunk.


Install Via Asterisk v13

  1. 1Once you load the ISO onto your server or virtual machine, there will be a range of options to choose from for installation.Today, we will walk thorugh a full install via asterisk 13.

FreePBX

  1. 2Confirm your appropriate network settings.

FreePBX

  1. 3Confirm your root password.

FreePBX

  1. 4Wait for all the necessary packages to be installed.

FreePBX

  1. 5More modules will be updated after successful internet tests.

FreePBX

  1. 6Enter root and the password you created from step 2.

FreePBX

  1. 7You'll now be provided with the URL you need to use in order to access the FreePBX web interface.

FreePBX

Basic Settings Configuration

  1. 1You'll be brought to the initial setup and must enter in the username, password and admin email address in order to create your account.

FreePBX

  1. 2Once you've created your account, you'll be brought to the dashboard. Select FreePBX Administration and enter your username and password.

FreePBX

  1. 3Follow the process to activate your FreePBX V13.

FreePBX

  1. 4Select your default locales.

FreePBX

  1. 5You'll be presented with some firewall details and other suggestions. You are welcome to set this up based on your requirements. Eventually, you'll be back at the dashboard and now see more details.

FreePBX

At this point you can now work on confirming network settings and configuring your SIP trunks and extensions.

Video Walkthrough

  1. 1Make your way to Settings -> Asterisk SIP Settings in order to confirm your network settings.
  2. 2You'll want to ensure you populate the external and local network addresses under General SIP Settings and Chan SIP Settings.
  3. 3Click Submit and then Apply Config.

FreePBX

SIP Channel Extensions

  1. 1Make your way to Applications -> Extensions -> Add Extension -> Add New Chan SIP Extension. The Outbound CID is the number you purchased from your Telnyx Mission Control Portal. The extensions secret may need to be populated under the Other tab.

    Note - This device uses CHAN_SIP technology listening on Port 5160 (UDP - this is a NON STANDARD port)

  2. 2Click Submit and then Apply Config.

FreePBX

  1. 3For testing purposes, you can now use your SIP client to register with FreePBX using the username, password/secret and local IP address of your FreePBX.

Add SIP Trunk(s)

  1. 1Make your way to Connectivity -> Trunks -> Add Trunk -> Add New Chan SIP Trunk. You'll now be located in the General tab.
  2. 2Enter a Trunk name, your Outbound CID and the maximum channels you'd like for this trunk.
  3. 3Specify an admin email and configure your mail server configuration by specifying a mail provider.

FreePBX

  1. 4Proceed to the Dialed Number Manipulation Rules tab.
  2. 5Depending on your use case, we've provided a simple dial pattern US numbers below.

FreePBX

For US Numbers

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

International

  • prepend: Country Dialing prefix; match pattern: NXXNXXXXXX
  • prepend:blank; match pattern: (Country Dialing prefix) NXXNXXXXXX
  1. 6Proceed to the SIP Settings tab. In the sub tabs outgoing and incoming, you'll want to include the following below settings:

Outgoing SIP Settings for the trunk:

FreePBX

  • username=your_credentials_based_telnyx_username
  • secret=your_credentials_based_telnyx_password
  • host=sip.telnyx.com
  • type=friend
  • insecure=port,invite
  • qualify=yes
  • disallow=all
  • allow=ulaw&alaw

Inbound SIP Settings for the trunk:

FreePBX

  • username=your_credentials_based_telnyx_username
  • secret=your_credentials_based_telnyx_password
  • fromdomain=sip.telnyx.com
  • host=sip.telnyx.com
  • type=friend
  • insecure=port,invite
  • qualify=yes
  • disallow=all
  • allow=ulaw&alaw
  • dtmfmode=rfc2833

Register String

your_credentials_based_telnyx_username:your_credentials_based_telnyx_password@sip.telnyx.com/your_credentials_based_telnyx_username

Example: dillin1234:mypassword123@sip.telnyx.com/dillin1234

Outbound Routes

  1. 1Make your way to Connectivity -> Outbound Routes -> Add Outbound Route.
  2. 2Enter the route name, route CID and specify the Telnyx_IP trunk for this outbound route. Click Submit and Apply Config.

FreePBX

Inbound Routes

  1. 1Make your way to Connectivity -> Inbound Routes -> Add Inbound Route.
  2. 2Enter the route name description, DID associated with this route and specify the extension that should be associated when calls are received to the DID.
  3. 3Click Submit and Apply Config.

You're FreePBX v13 Credentials Trunk is configured and you can now use it to make and receive calls.


Additional Resources

Need extra help setting up FreePBX Version 13? Click the Live Chat icon at your lower right hand corner and start a chat.

Was this page helpful?