Abhishek Singh Bailoo

Weblog

Jan 4

Install FreeSWITCH on CentOS

yum install libtool bison libjpeg-devel

git clone git://git.freeswitch.org/freeswitch.git

cd freeswitch

./bootstrap.sh

./configure

Edit modules.conf and uncomment any commented module that you might need. For eg, Flite and UniMRCP for TTS and ASR, etc.

make && make install

make sounds-install moh-install

cp build/freeswitch.init.redhat /etc/init.d/freeswitch

Edit /etc/init.d/freeswitch

PID_FILE=${PID_FILE-/usr/local/freeswitch/log/freeswitch.pid}
FS_USER=${FS_USER-freeswitch}
FS_FILE=${FS_FILE-/usr/local/freeswitch/bin/freeswitch}
FS_HOME=${FS_HOME-/usr/local/freeswitch}

chmod 755 /etc/init.d/freeswitch

chkconfig  —level 345 freeswitch on

chkconfig —list freeswitch

groupadd freeswitch

useradd -g freeswitch freeswitch

chown -R freeswitch.freeswitch /usr/local/freeswitch