How To Set Up FreePBX: A Quick Guide

free pbx

Introduction

In this guide, we will show you how to set up FreePBX on your server. We will also provide some basic configurations and show you how to get started with using this popular open source PBX software.

What is FreePBX?

FreePBX is a web-based graphical user interface (GUI) that manages Asterisk, an open source VoIP server. FreePBX is used by small businesses, large businesses, call centers, carriers and government organizations worldwide.

With FreePBX, you can easily set up phone system features like voicemail, caller ID, call forwarding, call recording and more. You can also use the FreePBX interface to manage Asterisk settings and configure IP phones.

Installing FreePBX

  1. Download the latest version of FreePBX from the official website.
  1. Extract the contents of the zip file to a location on your server. We will assume that you have extracted it to /var/www/html/freepbx.
  1. Change into the newly created freepbx directory: cd /var/www/html/freepbx
  1. Run the install script: ./install -n –dbuser root –dbpass password \ //Use your own mysql db username and password here! > /dev/null 2>&1 &
    The install process can take a few minutes to complete.
  1. Once the install script has finished, you will need to create a new admin user for the FreePBX interface. To do this, run the following command: ./bin/freepbx_admin –create-user \ // Use your own mysql db username and password here! > /dev/null 2>&1 &
  1. You will be prompted to enter a username and password for the new admin user. Make sure to choose a strong password.
  1. Once the admin user has been created, you can access the FreePBX interface by going to http://your-server-ip/admin in your web browser. Log in with the username and password that you created in the previous step.
  1. You should now see the FreePBX dashboard. From here, you can begin configuring your PBX server.

Basic Configuration

Now that FreePBX is installed and working, let’s take a look at some of the basic configurations that you will need to set up in order to get started.

  1. The first thing you will need to do is add one or more SIP (Session Initiation Protocol) accounts. SIP accounts are used to connect your PBX server to the outside world so that people can call in and out of your system. To add a new SIP account, click on the “Settings” tab in the main FreePBX interface and then click on the “SIP Accounts” option in the left sidebar.On the SIP Accounts page, click on the “Add Account” button.
  1. You will now need to enter some basic information about your SIP account. In the “Username” field, enter a username for this account. This can be anything you want. In the “Secret” field, enter a password for this account. Again, this can be anything you want. Just make sure that it is strong and secure.
  1. In the “Caller ID Number” field, enter the phone number that you want people to see when they receive calls from this account. This can be your personal phone number or the phone number of your business.
  1. In the “Pickup Group” field, select the pickup group that you want this account to be a part of. Pickup groups are used to group together multiple SIP accounts so that calls can be answered by any member of the group.
  1. In the “context” field, select the context that you want this account to use. The context defines where calls from this account will go when they are received by your PBX server.
  1. When you are finished, click on the “Submit” button to save your changes and add the new SIP account.
  1. You can now add additional SIP accounts by repeating the steps above.

FreePBX Cloud Configuration

In order to use FreePBX in the cloud, you will need to configure a few additional settings.

 

  1. The first thing you will need to do is add a new trunk. A trunk is used to connect your PBX server to the outside world so that people can call in and out of your system.

 

To add a new trunk, click on the “Settings” tab in the main FreePBX interface and then click on the “Trunks” option in the left sidebar.

 

On the Trunks page, click on the “Add Trunk” button.

 

  1. You will now need to enter some basic information about your trunk.

 

In the “Trunk Name” field, enter a name for this trunk. This can be anything you want.

 

In the “Outbound Caller ID” field, enter the phone number that you want people to see when they receive calls from this trunk. This can be your personal phone number or the phone number of your business.

 

  1. In the “PEER Details” section, you will need to enter the following information:

 

>> type=friend

allow=ulaw&alaw

nat=yes

host=YOUR-PBX-SERVER-IP //Replace with your own PBX server IP address! secret=YOUR-TRUNK-SECRET //Replace with your own chosen secret!

context=from-trunk

dtmfmode=rfc2833

insecure=invite,port

canreinvite=no

>> //The above settings are the minimum required for a cloud trunk. You can add additional settings as needed.

  1. When you are finished, click on the “Submit” button to save your changes and add the new trunk.

 

  1. You will now need to add an outbound route. An outbound route is used to define where calls made through this trunk will go.

 

To add an outbound route, click on the “Settings” tab in the main FreePBX interface and then click on the “Outbound Routes” option in the left sidebar.

 

On the Outbound Routes page, click on the “Add Outbound Route” button.

 

  1. You will now need to enter some basic information about your outbound route.

 

In the “Route Name” field, enter a name for this route. This can be anything you want.

 

In the “Dial Patterns” section, you will need to define one or more dial patterns that will match calls made through this trunk. Dial patterns are defined using the following syntax: X+NXXNXXXXXX where X is any digit from 2-9 and N is any digit from 0-9.

 

For example, if you want to match all 10-digit US phone numbers, you would use the following dial pattern: NXXNXXXXXX.

 

  1. In the “Trunk Sequence” section, select the trunk that you want to use for this route. If you only have one trunk configured, it will be selected by default.

 

  1. When you are finished, click on the “Submit” button to save your changes and add the new outbound route.

 

  1. You can now add additional outbound routes by repeating the steps above.

 

Congratulations! You have now successfully configured FreePBX for use in the cloud!

Set Up FreePBX on AWS Instantly

Hailbytes offers an instance of FreePBX on AWS that can be configured quickly and cost-effectively. FreePBX on AWS is a scalable solution that can be used for small business or enterprise deployments.

To get started, simply sign up for an account and launch your FreePBX instance today!

Conclusion

In this guide, we have shown you how to install and configure FreePBX on your server. We have also covered some of the basic settings that you will need to configure in order to get started.

Now that you have FreePBX up and running, you can begin setting up features like voicemail, call forwarding, call recording, and more. You can also use the FreePBX interface to manage Asterisk settings and configure IP phones.