Freeswitch Installation on Ubuntu Sever

After some years of experience on Asterisk telephony system I decided to install Freeswitch . It seems that It has better support on some specific features such as fax , webrtc , etc . I will document the steps and my experience on that  as Im going on . Now its time to Install the freeswitch 

Firs of all we need to install he prerequisites 

apt-get install build-essential libjpeg-dev  libcurl4-gnutls-dev libedit-dev libldns-dev libmp4v2-dev libncurses5-dev libmemcached-dev libpcre3-dev libspeex-dev libspeexdsp-dev libsqlite3-dev libvlc-dev
emerge -pv dev-db/unixODBC media-libs/tiff media-libs/alsa-lib net-misc/curl net-misc/memcached dev-lang/erlang

Download the latest freeswitch source code , compile and install it . 

cd /usr/local/src/
wget -c

cd freeswitch-1.4.6/
make install

Then you can run the service by entering the /usr/local/freeswitch/bin directory and run the freeswitch script .( to shutdown the service type shutdown )
cd /usr/local/freeswitch/bin/

If you want to run it in background 
cd /usr/local/freeswitch/bin/
./freeswitch -nc

if you want to run it at sturtup edit /etc/rc.local
and add the following line at the bottom of file

./usr/local/freeswitch/bin/freeswitch -nc

to run the Freeswitch console you should run the ./fs_cli script and to quit type /bye in console


Post a Comment