Freeswitch Howto: Installation

I’m not going to cover the installation of CentOS 5.5, nor will I cover how to setup a software RAID.  There are plenty of other tutorials already done that explain those things.  Here is what I did, though, step by step to get Freeswitch and the wanpipe drivers installed on our system (I’m assuming a basic working knowledge of the Linux command line).

Note: All of the following commands should be run as root.

yum list updates

yum update

yum install unixODBC-devel gnutls-devel libtiff-devel autoconf automake awk* bison core-devel curl-devel expat-devel flex gcc* gettext-devel gnutls gnutls-devel kernel-devel-$(uname -r) libjpeg-devel libtiff libtiff-devel libtool libX11-devel libzrtpmake ncurses-devel openssl patch python-devel unixODBC-devel zlib zlib-devel

The above commands should install all the dependencies needed for git, the Sangoma drivers, and freeswitch.

Install Git

Make sure /usr/local/lib is in your ld.so.conf, this is required for git-http-push to correctly link up to the Curl version you are installing.

vi /etc/ld.so.conf

Insert the following:
/usr/local/lib

Save the file, then run:
ldconfig

Now download and install Git:
cd /usr/local/src
wget http://www.codemonkey.org.uk/projects/git-snapshots/git/git-latest.tar.gz
tar xzvf git-latest.tar.gz
cd git-{date}
autoconf
./configure –with-curl=/usr/local
make
make install

Install Sangoma Drivers

cd /usr/local/src
wget ftp://ftp.sangoma.com/linux/current_wanpipe/wanpipe-latest.tgz
tar xfz wanpipe-latest.tgz
cd wanpipe-.tgz
make freetdm
make install

Install Freeswitch

cd /usr/local/src
git clone git://git.freeswitch.org/freeswitch.git
cd freeswitch
./bootstrap.sh

Edit modules.conf remove the “#” from the freetdm and flite modules:
vi /usr/local/src/freeswitch/modules.conf

When your done editing save and continue with the installation:
./configure
make
make install
make all cd-sounds-install cd-moh-install
The last command will download about 300Mb of sound files.  These are for the voice mail/IVR system and the music on hold.

Run this command to configure the Sangoma hardware. When I set this up I had to turn off hardware DTMF. When it was on using calling cards was almost impossible. Calling cards work just fine with the software DTMF.

/usr/sbin/wancfg_fs

This will start freeswitch. To start it as a daemon freeswitch -nc.
cd /usr/local/freeswitch/bin
./freeswitch

This will start the freeswitch command line when the command “fs_cli” is run.
ln -s /usr/local/freeswitch/bin/fs_cli /usr/local/bin/fs_cli

That’s it.  I would suggest starting Freeswitch with the -nc option, unless your having problems and need to trouble shoot.

One thought on “Freeswitch Howto: Installation”

Leave a Reply

Your email address will not be published. Required fields are marked *