Configuring a FreePBX Version 13 Trunk' fill-rule='evenodd'%3E %3Cpath d='M7.778 7.975a2.5 2.5 0 0 0 .347-3.837L6.017 2.03a2.498 2.498 0 0 0-3.542-.007 2.5 2.5 0 0 0 .006 3.543l1.153 1.15c.07-.29.154-.563.25-.773.036-.077.084-.16.14-.25L3.18 4.85a1.496 1.496 0 0 1 .002-2.12 1.496 1.496 0 0 1 2.12 0l2.124 2.123a1.496 1.496 0 0 1-.333 2.37c.16.246.42.504.685.752z'/%3E %3Cpath d='M5.657 4.557a2.5 2.5 0 0 0-.347 3.837l2.108 2.108a2.498 2.498 0 0 0 3.542.007 2.5 2.5 0 0 0-.006-3.543L9.802 5.815c-.07.29-.154.565-.25.774-.036.076-.084.16-.14.25l.842.84c.585.587.59 1.532 0 2.122-.587.585-1.532.59-2.12 0L6.008 7.68a1.496 1.496 0 0 1 .332-2.372c-.16-.245-.42-.503-.685-.75z'/%3E %3C/g%3E %3C/svg%3E)
Intro To FreePBX v13
FreePBX 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 Prerequisites' fill-rule='evenodd'%3E %3Cpath d='M7.778 7.975a2.5 2.5 0 0 0 .347-3.837L6.017 2.03a2.498 2.498 0 0 0-3.542-.007 2.5 2.5 0 0 0 .006 3.543l1.153 1.15c.07-.29.154-.563.25-.773.036-.077.084-.16.14-.25L3.18 4.85a1.496 1.496 0 0 1 .002-2.12 1.496 1.496 0 0 1 2.12 0l2.124 2.123a1.496 1.496 0 0 1-.333 2.37c.16.246.42.504.685.752z'/%3E %3Cpath d='M5.657 4.557a2.5 2.5 0 0 0-.347 3.837l2.108 2.108a2.498 2.498 0 0 0 3.542.007 2.5 2.5 0 0 0-.006-3.543L9.802 5.815c-.07.29-.154.565-.25.774-.036.076-.084.16-.14.25l.842.84c.585.587.59 1.532 0 2.122-.587.585-1.532.59-2.12 0L6.008 7.68a1.496 1.496 0 0 1 .332-2.372c-.16-.245-.42-.503-.685-.75z'/%3E %3C/g%3E %3C/svg%3E)
You're now ready to setup FreePBX v13 Trunk.
Install Via Asterisk v13
- 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.
- 2Confirm your appropriate network settings.
- 3Confirm your root password.
- 4Wait for all the necessary packages to be installed.
- 5More modules will be updated after successful internet tests.
- 6Enter root and the password you created from step 2.
- 7You'll now be provided with the URL you need to use in order to access the FreePBX web interface.
Basic Settings Configuration
- 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.
- 2Once you've created your account, you'll be brought to the dashboard. Select FreePBX Administration and enter your username and password.
- 3Follow the process to activate your FreePBX V13.
- 4Select your default locales.
- 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.
At this point you can now work on confirming network settings and configuring your SIP trunks and extensions.
Video Walkthrough
- 1Make your way to Settings -> Asterisk SIP Settings in order to confirm your network settings.
- 2You'll want to ensure you populate the external and local network addresses under General SIP Settings and Chan SIP Settings.
- 3Click Submit and then Apply Config.
SIP Channel Extensions
- 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)
- 2Click Submit and then Apply Config.
- 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)
- 1Make your way to Connectivity -> Trunks -> Add Trunk -> Add New Chan SIP Trunk. You'll now be located in the General tab.
- 2Enter a Trunk name, your Outbound CID and the maximum channels you'd like for this trunk.
- 3Specify an admin email and configure your mail server configuration by specifying a mail provider.
- 4Proceed to the Dialed Number Manipulation Rules tab.
- 5Depending on your use case, we've provided a simple dial pattern US numbers below.
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
- 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:
- 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:
- 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
- 1Make your way to Connectivity -> Outbound Routes -> Add Outbound Route.
- 2Enter the route name, route CID and specify the Telnyx_IP trunk for this outbound route. Click Submit and Apply Config.
Inbound Routes
- 1Make your way to Connectivity -> Inbound Routes -> Add Inbound Route.
- 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.
- 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
- Cast your eyes over our getting started guide to ensure your Telnyx Mission Control Portal account is setup correctly.
- Checkout FreePBX's help section
for extra support.
Need extra help setting up FreePBX Version 13? Click the Live Chat icon at your lower right hand corner and start a chat.