1. Home
  2. Docs
  3. PBX Settings
  4. FreePBX Settings – Chan_SIP (Works on all FreePBX versions)

FreePBX Settings – Chan_SIP (Works on all FreePBX versions)

FreePBX is one of the largest PBX suppliers on the planet, and we’re happy to tell you that PBX Shield uses it as one of it’s test systems, making us fully compatible with FreePBX and most other blends of the Asterisk PBX platform.

This quick setup guide deals with using Chan_SIP to connect to PBX Shield. Chan_SIP has been used in FreePBX since conception and is compatible with all versions of FreePBX. If you have a more modern version of FreePBX (E.g. since 2016) we recommend using our PJSIP setup guide where possible.

Setting up PBX Shield on FreePBX is a quick and easy process.

Lets get started!

Before we begin, we have made a few assumptions:

  • Your FreePBX is working with a VoIP or PSTN provider already.
  • You have an extension or extensions connected already.

First of all, login to your FreePBX system. We’re starting from the dashboard, so it should look a little something like this:

FreePBX Dashboard

In the top menu, hover over the connectivity menu item and then click on trunks in the drop-down menu that appears. (connectivity->trunks)

Top menu. Hover over connectivity and click on trunks.

Once you are in the trunk screen, click on the Add Trunk button, and choose Add SIP (chan_SIP) Trunk from the dropdown menu.

This image has an empty alt attribute; its file name is freepbx_add_trunk_menu.png
Choose Add SIP (chan_sip)

You should now be looking at the Add Trunk menu. Make sure the General tab is selected.

FreePBX add trunk menu

In this menu, make the following changes:

  • Trunk Name: PBX Shield
  • Outbound CallerID:PBX_ID” <Your Outbound CID>

Replace PBX_ID with the PBX ID number that you copied from the configuration settings of your PBX Profile.

Replace Your Outbound CID with the outbound caller ID that you use for your calls, or simply leave blank (remove the whole <Your Outbound CID> section, including the brackets).

Once you have done this, underneath the words Add Trunk you will see a series of tabs. Click on the one named SIP Settings.

FreePBX Sip Peer Details

Fill in the details for this menu as below:

  • Trunk Name: PBX Shield

Under Peer Details enter the following (copy and paste if you can):

host=protect.pbxshield.com
insecure=very
type=peer

Now you have setup your trunk, what we need to do is make sure that PBX Shield is the first trunk called, this allows us to check your security settings for each call made and choose to either allow the call or disallow it.

To do this we need to go back to the top menu and hover over the connectivity menu again. Then choose Outbound Routes from the drop down menu.

Once you have chosen outbound routes you will end up at the outbound routes menu.

Choose your outbound route from the menu and click the edit icon.

FreePBX Outbound Routes Menu

You will now be in the edit outbound routes menu under the Route Settings tab. This is where we control the path the call takes when you dial a number. In most cases you simply need to leave everything alone, except for the Trunk Sequence For Matched Routes and congestion settings. This is where we will put in our PBX Shield trunk.

FreePBX Outbound Routes Menu

Inside this menu make sure the settings are as follows:

  • Trunk Sequence for Matched Routes: The first one MUST be PBXShield, then the second one should be your VOIP or PSTN providers trunk.
  • Optional Destination on Congestion: Normal Congestion

Once you have done this, save your settings. Then finally click on the Apply Config big red button at the top right of the FreePBX settings page.

FreePBX Apply Config Button On Top Right

Congratulations! PBX Shield should now be connected to your FreePBX system.

Don’t take our word for it though. We have a few test numbers that should show up in your dashboard if your connected just fine.

Go here, to test your PBX using our test numbers

Was this article helpful to you? Yes No