How to install FreeSWITCH on Ubuntu

Just like any other software, installing freeswitch on ubuntu is a breeze. Just follow the set of instructions below and you will have a working VoIP switch in no time. First step in this process is to get the dependencies installed.
apt-get install build-essential 
apt-get install flex
apt-get install bison
apt-get install libncurses5-dev
apt-get install unixodbc-dev
apt-get install libnspr4
apt-get install autoconf 
apt-get install automake 
apt-get install libtool 
apt-get install libmudflap0-dev 
apt-get install libltdl3-dev
Although you can install all the above packages in one shot by typing package names in single line to apt-get, for clarity I've given them separately. Next step in the process is to get freeswitch. You can get the latest release from freeswitch webstite, type the following commands.
cd /usr/src/
tar -zxvf freeswitch-1.0.6.tar.gz
cd freeswitch-1.0.6
At this point you can edit modules.conf in the freeswitch-1.0.6 directory to select the modules you like to compile and disable modules that you don't want. To select a module you need to uncomment (remove the # symbol before module name) and to deselect you need to comment out (add a # symbol before module name) Compiling freeswitch
make install
thats it, now you have freeswitch installed in /usr/local/freeswitch diretory. You can now run additional make commands displayed on your screen to install sounds and moh packages. Starting freeswitch
cd /usr/local/freeswitch/bin
will start freeswitch in foreground if you want freeswitch to run as daemon, you need to type the following command
./freeswitch -nc
you can add freeswitch to startup by adding following line to /etc/rc.local file before the exit 0 line
/usr/local/freeswitch/bin/freeswitch -nc


Post new comment

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Syntax highlight code surrounded by the <pre class="brush: lang">...</pre> tags, where lang is one of the following language brushes: bash, php, plain, python.

More information about formatting options

Enter the characters shown in the image.