How to install FreeSWITCH in CentOS

How to install FreeSWITCH in CentOS

how to install freeswitch in centos

FreeSWITCH is a scalable open source cross-platform telephony platform designed to route and interconnect popular communication protocols using audio, video, text or any other form of media. It was created in 2006 to fill the void left by proprietary commercial solutions.

FreeSWITCH Prerequisites And dependencies

1. Add the repository 

rpm -ivh

2. Install necessary components

yum -y  install git gcc-c++ autoconf automake libtool wget python ncurses-devel zlib-devel libjpeg-devel openssl-devel e2fsprogs-devel sqlite-devel libcurl-devel pcre-devel speex-devel ldns-devel libedit-devel

3. Install FreeSWITCH

cd /usr/src

git clone

cd /usr/src/freeswitch

./ -j

4. To add or remove modules from the build, edit modules.conf

vi modules.conf

# add a module by removing '#' comment character at the beginning of the line
# remove a module by inserting the '#' comment character at the beginning of the line

./configure -C
make install

5. Install different sounds

8KC Sounds

make sounds-install
make moh-install

CD-Quality Sounds

make cd-sounds-install
make cd-moh-install

 How To Set Owner and Permissions In FreeSWITCH

# create user 'freeswitch'
# add it to group 'daemon'
# change owner and group of the freeswitch installation
cd /usr/local

useradd --system --home-dir /usr/local/freeswitch -G daemon freeswitch
passwd -l freeswitch

chown -R freeswitch:daemon /usr/local/freeswitch/ 
chmod -R 770 /usr/local/freeswitch/
chmod -R 750 /usr/local/freeswitch/bin/*

mkdir /var/run/freeswitch
chown -R freeswitch:daemon  /var/run/freeswitch

ln -s /usr/local/freeswitch/bin/freeswitch /usr/bin/ # needed by /etc/init.d/freeswitch

How To Start FreeSWITCH

cd /usr/local/freeswitch/bin
    Blogger Comment
    Facebook Comment


Post a Comment