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.
tar -zxvf freeswitch-1.0.6.tar.gz
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)
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.
will start freeswitch in foreground if you want freeswitch to run as daemon, you need to type the following command
you can add freeswitch to startup by adding following line to /etc/rc.local file before the exit 0 line