FusionPBX Tutorial

FusionPBX is a powerful open-source PBX platform that is scalable, adaptable and intuitive to use. It utilizes FreeSWITCH, as the underlying software that performs the routing functionality.

Open source software is wonderful, after all it is free and often supported by thousands of Engineers across the world. If there is one weakness, it tends to be on the support side and it is the goal of this FusionPBX guide to document the installation and configuration steps necessary to obtain a working system. I will also touch on some of the features available in this platform.


What is FusionPBX?

FusionPBX is an open source piece of software that is essentially a Graphical User Interface (GUI) for FreeSWITCH, using the GUI to create and edit XML files that are then used to control the switch software.

FreeSWITCH, for those that are unaware, is a telephony platform that can route and interconnect voice, video and text. The designers of FreeSWITCH were originally developers of that other popular open source platform known as Asterisk.

Both solutions provide excellent switching platforms, although many experts in the telephony world believe that FreeSWITCH is an improvement over Asterisk. Given the same hardware platform and operating system, FreeSWITCH can support a larger number of concurrent phone calls.

In addition to a rich and comprehensive feature set, the FusionPBX system also supports multi-tenancy. This is a very important point for VoIP service providers, as it enables them to segregate their customers into separate sub domains, thus ensuring that one customer cannot directly talk to another under the same installation. Most of the popular Asterisk based systems, such as FreePBX, do not support multi-tenants under one installation.


The FusionPBX install can be complicated mainly due to the lack of documentation that can be found on the Web. The official FusionPBX website can get you most of the way there with its online documentation but there tends to be areas that require you to roll your sleeves up. After reading this tutorial hopefully some of the pain of installation can be eliminated.


The official website gives no indication as to the hardware requirements for a computer running FusionPBX but from my own experience, unless you are just doing a basic test machine, I would go with at least a dual core CPU, at least 4GB of RAM and a minimum of 80GB of hard drive space.

After much trial and error, I opted for Ubuntu 12.04 LTS (64 bit server edition, Long Term Support). That is not to say you cannot use other operating systems, it's just I had the most success with this version and I like the fact that this is supported through April, 2017.

It is not in the scope of this tutorial to show you how to install the operating system, as there are plenty of good guides on this already on the Internet. You can download the Ubuntu 12.04 LTS Server Edition here and there are plenty of good guides on the Ubuntu website regarding installation.

Install FusionPBX

To install the software, first bring up a command shell in Ubuntu or log in remotely using a Secure SHell (SSH) with a tool such as PuTTy. If using PuTTy, type in the IP address of the Ubuntu machine into the Host Name (or IP address) field and click the Open button. The user name is "root" and the password will be the one created when you installed Ubuntu as root admin.

The following steps must then be performed at the command window in order to download and install FusionPBX (which performs the FreeSWITCH install). At this time of writing, the most recent version of FusionPBX is 3.6.3 (rev 7949).

UPDATE JULY 2015: FusionPBX is now using Github for its repository instead of Google Code (since Google code is stopping its service soon). For this reason you may want to utilize the Github based installation script so you can upgrade to future versions using the Upgrade link on the FusionPBX GUI. You can find more about this in the comment section below. This article relates to version 3.6 so I want to keep the original instructions intact for this article. However, at some point I will update the entire article for a newer version if there is enough interest, just let me know using the comment section below.

Install Subversion for getting the codebase.
apt-get install subversion
Check out the code.
svn checkout https://fusionpbx.googlecode.com/svn/trunk/scripts/install/ubuntu/ /usr/src/install_fusionpbx
Change permissions.
chmod 755 /usr/src/install_fusionpbx/install_fusionpbx.sh
Create a link to the installation area.
ln -s /usr/src/install_fusionpbx/install_fusionpbx.sh /usr/local/bin/
Install FusionPBX and FreeSWITCH and create a log file in case it all goes horribly wrong.
/usr/local/bin/install_fusionpbx.sh install-both user |tee /tmp/install_fusion.log

During the installation you will be asked some questions along the way. Most of these just require a simple "Y" or "Enter" to be pressed but there are a few that need some attention, as detailed below. Note that the selections given below are just my preferences and the ones I had the most success with. The entire installation process could take at least 30 minutes.

  • FreeSWITCH has the option to use PostgreSQL or Sqlite - Enter "S" for Sqlite. FreeSWITCH will continue installation and eventually you will see the text "Freeswitch successfully built."
  • Web server, Apache or Ngnix - Enter "A" for Apache. FusionPBX will then continue with its installation.
  • Database to use with FusionPBX - Enter "S" for Sqlite since we already installed it for FreeSWITCH.

At the end of the installation, you will see the window displayed in Figure 1 below. The script is waiting for me to login to Fusion using a web browser (using the IP address of your machine). The browser window should show the admin configuration details along with the type of database (Sqlite in our case). Enter a username and password of your choosing, as shown in Figure 2.
NOTE: See comment section as there may be an issue with special characters being used for the password of the database. Suggest sticking with numbers and letters, at least for initial installation.

On moving to the next step in the browser, you will need to enter the details for the database. The name will be displayed in the command window, as will the directory where it is stored (see Figure 1). For my installation, and likely yours too, the database name is fusionpbx.db and the directory path is /var/www/fusionpbx/secure

FusionPBX Install

Figure 1: Install FusionPBX

Admin Details

Figure 2: Admin Details

After selecting Next in step 2 you will be taken to the main FusionPBX login area, as shown in Figure 3 below. If you take a look at the command shell (also shown in Figure 3) you should see that it has completed the installation. You will also notice a mention of Fail2Ban. I am not going to dig deeper for this tutorial but suffice to say, this is a very useful utility that works in conjunction with FreeSWITCH to ban external attacks on your system.

FusionPBX Login Screen

Figure 3: FusionPBX Login Screen

Configuring FusionPBX

Now that we have the installation complete, it is time to look at the telephony side and configure the system to a working PBX. First of all I want to touch on multi-tenancy. This is useful if you need to keep customers or internal functions within an organization apart from each other. You can hopefully see why VoIP providers rely on multi-tenant systems, after all they do not want one customer inadvertently talking to a different customer by a simple extension call. Most of you reading this guide will likely have little interest in multi-tenancy and can skip the following section.

Now would be a good time to login to your FusionPBX system, using the admin username and password you setup in Figure 2.

Multi Tenant Setup (Optional)

This section is optional. Most people will disregard multi-tenancy and instead just use this PBX for a single tenant setup, in which case you can move to the following section.

In FusionPBX, multi-tenancy requires the use of sub-domains. Now would be a good time to go and setup a domain with a registrar and point the nameservers to the IP address of your Fusion installation. This exercise is left to the reader, but should not be a painful process and each registrar and Web hosting company has instructions on how to do this.

Navigate to Advanced and then on the left hand side select Domains. You will see one domain which will be the IP address of your computer. Edit this domain and change it to the domain you set up with your registrar. This is the master domain and I called this host.[domain].com and for the purpose of this example I set it up as host.myfusionpbxsystem.com as you can see in Figure 4 below.

FusionPBX Domains

Figure 4: FusionPBX Domains

Now add new sub domains for each tenant. For example tenant100.myfusionpbxsystem.com etc. Each domain will be isolated from each other. We will now move into the configuration steps for the PBX below as though there was one tenant, since this is the most likely case for most readers. However, for those interested in multi-tenancy, I recommend setting up the gateways under the master account (i.e. host.myfusionpbxsystem.com ) simply because the gateway can be shared by ALL tenants.  Therefore by using the master gateways in each tenant setup, it typically means there is less work to do later should a gateway change. In other words I can edit the gateway under the master domain and this will get picked up by all of the tenants. Other than that, the following sections apply to multi-tenancy too, simply place all of the dial plan information, extensions and users under a given tenant. You can select a tenant using the drop-down menu on the top right of the FusionPBX theme.


The gateways are used to handle outgoing and incoming calls with respect to the PBX, for example calls to the PSTN, cellular networks and other VoIP providers. Internal extension calls are all handled by the Fusion PBX but whenever a call is made to the outside world it must be passed to the gateway. Similarly, incoming calls come through the gateway and are routed based on inbound dial plans.

For the purpose of this guide, I am using Flowroute as the trunking provider. Flowroute makes it easy for anyone to sign up for its service, whether a hobbyist or a business and also give you some free credits for calls, so it makes it easy to test out PBX systems. Navigate to Accounts and then Gateways in FusionPBX and click on the plus symbol to add a new gateway. Enter the details as viewed in Figure 5 below. Use the username and password details that you were given when you signed up with Flowroute (or the details of another provider if you went a different route).

Flowroute Gateway

Figure 5: FusionPBX Gateway (Flowroute)

If this was successful, you should see registration with Flowroute. You can view this in two areas. First of all on the Flowroute Website portal (where you signed up for their service) under Interconnection it should indicate that there is a registration present with FreeSWITCH, as shown in Figure 6. Secondly, in FusionPBX under Status then SIP Status it should show the Flowroute gateway in the REGED state.

Flowroute Registration

Figure 6: Flowroute Registration

Users and Extensions

Although it is not necessary to create user accounts, they can be useful as it enables users to log in to their own secure FusionPBX portal and perform basic tasks such as do not disturb, call forwarding, check voicemail and the likes. The level of functionality they see can also be altered. For example if you want to give them the ability to create ring groups you can add this to their permissions using the group manager feature. You can find this under Advanced and then Group Manager.

To create a user, simply go to Accounts and then User Manager and in there, click on the plus symbol to add a user. You can then fill in the user's details, as highlighted in Figure 7.

New User

Figure 7: New User

Now we will add an extension and attach it to this user. Note that a user can have multiple extensions attached to them and they will be able to control all of them via their user portal. To add an extension go to Accounts and then Extensions and then click on the plus symbol to create a new extension. In Figures 8, 9 and 10 you will see the settings for extension 1000 that I created and attached to the user created in Figure 7. Don't forget to click on Save. A couple of notes when adding an extension. The extension number and password are used by your IP phone or soft-phone for authentication. I will be provisioning the phone manually so there is no need to enter the device provisioning details. For the context and account codes, this relates to the multi-tenant system I created. If you ignored this section, you will likely just have an IP address for these two fields.

New Extension (Part 1)

Figure 8: New Extension (Part 1)

New Extension (Part 2)

Figure 9: New Extension (Part 2)

New Extension (Part 3)

Figure 10: New Extension (Part 3)

Now we need to configure an IP phone for this extension. For the purpose of this test I am using a Grandstream DP715, which is a DECT (cordless) IP phone. Configuration is very simple for this device, and involves creating a profile and enabling the handset as shown in Figures 11 and 12 below. Note that the authentication matches the extension we created and the profile information is the domain for this tenant, for single tenant systems this could be just an IP address.

Grandstream Profile

Figure 11: Grandstream Profile

Grandstream Handset

Figure 12: Grandstream Handset

If this has been successful you should see that the phone has registered with the FusionPBX system. You can check this on the status page for your phone and also in FusionPBX by going to the Status section and clicking on Registrations. You can see my registration in Figure 13. If you have multiple phones and you setup an extension for each one, you can now actually make calls between the extensions. However, no dial plans have been set up so you cannot call the outside world yet, we will do that next.

Grandstream Registered

Figure 13: Grandstream Registered

Dial Plans

Dial plans are needed in order to send calls through your gateway in both the incoming and outgoing paths. FusionPBX makes this relatively straightforward to configure. First let's look at the outgoing side. To create an outbound route, navigate to Dialplan and then select Outbound Routes. Click on the plus symbol to add a new route and complete the details as shown in Figure 14, which sets up 10 digit dialing and prefixes with a "1" since Flowroute requires this for all domestic calls inside the United States. For the gateway I selected Flowroute from the drop-down, since we already configured this gateway inside FusionPBX. You should be able to make outbound calls now, give it a try.

Outbound Configuration

Figure 14: Outbound Configuration

For inbound routes you must have a Direct Inward Dial (DID) at Flowroute that can be routed into your PBX. You can purchase DIDs for a small fee in the Flowroute portal and make sure you set the route for this DID to SIP registration in your portal on the Flowroute website. To configure the inbound route in FusionPBX simply navigate to Dialplan and then select Destinations. Click on the plus symbol to create a new inbound destination and fill in the details as per Figure 15 below, but of course using your own DID that you purchased from Flowroute. FusionPBX simplified inbound routes by using the Destinations section. If you look inside the Inbound Routes area, you will see that the destination you created, was turned into an inbound route for you. This can be made more complex such as adding conditions and other actions but that is beyond the scope of this guide. Note that I am passing the call to extension 1000, in other words sending it to the extension we created earlier.

Inbound Configuration

Figure 15: Inbound Configuration

Try calling your DID from another device, such as your cell phone. The call should come through to your IP phone, which in our case is the Grandstream DP715.

Other Features

Now that you have a working PBX, why not try playing with the other features inside FusionPBX (click on the App tab and you will see the features shown in Figure 16). There are many to choose from, for example a few simple ones to start with are as follows:

  • Voicemail to Email - Inside Advanced then Default Settings edit the Email settings for your SMTP server and your voicemails can be sent as an attachment to the email address you configured under your extension.
  • Conference Center - Create a conference extension number and setup the room with password protection.
  • Follow Me - Configure Follow Me to send your calls to other numbers of your choosing.
  • IVR (Interactive Voice Response) - Set up an IVR for your incoming calls, for example, press "1" for Sales, "2" for customer service etc. Use the Recordings feature to create your prompts.

Other Features

Figure 16: Other Features

Final Thoughts

FusionPBX is an impressive piece of software that takes advantage of the routing capabilities of FreeSWITCH and presents it all in an intuitive graphical interface. The installation can be tricky but if you go through this tutorial step-by-step you should have very few problems along the way.

If you do come across some stumbling blocks, drop me a note using the comment form below and I will try to steer you in the right direction.

Finally, if an on-premise PBX sounds appealing for you or your business, use our SIP trunking quote form on the top right of this page to request free quotes for trunking service.

Published: by WhichVoIP

Related Articles for Further Reading:

left arrow PREV
SipXecs Freeswitch PBX Guide
NEXT right arrow
IP PBX Phone Systems and Providers


Ask us your question or add a comment:

Use the form below to add your comments/thoughts and to interact with us. All comments will be moderated by WhichVoIP.com before going live. We try to answer all questions within 24 hours.

Email: (ONLY used for responding)
Enter code below:

By submitting you agree to our site Terms of Use


WhichVoIP Visitor Comments

#7 : Posted by Chima

I am having issues with my outbound dial plan, I need to strip the initial 0 from the 11 digit I wish to call and add a preceeding number 234. The challenge is how to strip the zero.

-> Response: You need to take advantage of regular expressions in order to remove the 0 and then when you pass the 10 digit result to the gateway prepend with 234.


#6 : Posted by Roy Bradshaw

Does Fusionpbx support zero-out- from voicemail? Can you provide online user training>

-> Response: Can you elaborate on what you mean by zero-out?
We cannot provide online training but there is official training if you go to the FusionPBX website.


#5 : Posted by Brad

I am trying to figure out how to get the operator panel in fusionpbx to only show available if the sip phone is registered.

-> Response: Sounds like some customization. You may need to contact the guy in charge of the project and pay for his time.
Pretty sure the way that works today is that it is active calls. You are looking more for a presence type functionality it seems. Presence is a feature of Freeswitch so it seems possible.


#4 : Posted by Bradley

I have an interesting question. I have FusionPBX running in Multitenant and i would like to have a 611 option for my clients to call and reach my support team. How would I go about setting up that extension Number for my clients to dial and reach us directly. We are on the same phone system so everything is internal but there is no global option for extensions.

-> Response: I have not tried this but thinking out loud I would probably attempt to do it this way:
- Create global outbound route so it appears on every tenant.
- condition > destination_number of 611 using dialplan expressions.
- set call_direction local.
- bridge user/{ext}@{your tenant} where you replace ext and tenant for where you want it to go.
My thoughts are that every tenant would see this route because it is global and whenever 611 is called it will try to keep it local and bridge it to you on your master tenant. You would need to mess with the dial plan expression to get it to work but might be worth some more research.


#3 : Posted by Zach

Got a fusionpbx setup going but having issues with my phones dropping. Any ideas on this or any firewall settings you would recommend.

-> Response: This is likely a NAT related issue. Check to make sure your router is correctly configured for VoIP.


#2 : Posted by Trav

Cannot get it to install. Fails after entering DB password. /usr/local/git not found or something to that effect.
Tried Debian, gets past that point then fails near the end with a Makefile error (recipe for target install failed.
This is all nonsense. Can they not make an install that actually works? FreePBX, trixbox, elastix install NEVER a hiccup. Ever.
Only messing with this because they have multi-tenant capability. Does not seem to be worth it.

-> Response: Strange you are seeing this. Can you let me know what you set the options to for the DB (Postgres or SQLite). What about web server, Nginx or Apache? Also, are you using Debian Jessie?

-> UPDATE: Turns out this was due to special characters being used for the Database password and when entered into the GUI during the final part of installation. May need to keep passwords to numbers and letters until this has been resolved.


#1 : Posted by Warren

I followed the instruction and everything worked great. The part where I have to manually put in the database information does not show when I enter the IP address as the url. I get the page saying the database was successfully installed, it does not take me to the part where I have select sqlite and put in the, the database and the path. Is there something else that needs to be done?

-> Response: That's a little strange but I've seen a few weird things when installing FusionPBX.
Here are a few things I would look at:
1. There is a config.php file in the FusionPBX install area (often this is /var/www/fusionpbx). You could open SSH and try editing that file. Make a note of the settings in the file but clear the settings so each variable is empty and then try going to the IP address in a browser. This should force it to load the install screen and get you to enter the info for the database etc.
2. Are you using Firefox? I noticed some strange things in an earlier version of firefox. Try going to http://[yourip]/login.php to see if that gets you to the login screen.
3. FusionPBX is now using Github code for its repository (NOT google code as it is going away) and this is where all new versions are stored so it may be worth you following the latest installation instructions:
FusionPBX Installation BUT change the comment lines so it uses github. i.e.

cd /usr/src
apt-get install wget
wget https://raw.githubusercontent.com/fusionpbx/fusionpbx-scripts/master/install /ubuntu/install_fusionpbx.sh
chmod 755 install_fusionpbx.sh
./install_fusionpbx.sh install-both user

Also I have recently been using Nginx instead of Apache (as ssl comes installed with nginx and less memory). Also Postgres for the database is worth using if you need this for a larger system install.
Hope this helps.


SIP Trunking Price Quotes

2018 Top Providers*
  • SHARE: