Sunteți pe pagina 1din 2

Freeswitch Installation Guide on CentOS 6

1. Yum update
2. Yum install git
3. yum install autoconf automake gcc-c++ git-core libjpeg-devel libtool

4.
5.
6.
7.
8.
9.

make ncurses-devel unixODBC-devel openssl-devel gnutls-devel liboggdevel libvorbis-devel curl-devel libtiff-devel libjpeg-devel pythondevel expat-devel zlib zlib-devel bzip2 which
cd /usr/local/src
git clone git://git.freeswitch.org/freeswitch.git
cd freeswitch/
./bootstrap.sh
./configure --without-libcurl --without-pgsql
vim modules.conf (Edit the modules.conf file. Remove the # in front of any

modules you want to compile


10. make && make install
11. make uhd-sounds-install && make uhd-moh-install
12. in Freeswitch folder; cp build/Freeswitch.init.redhat
/etc/init.d/Freeswitch
13. chmod 755 /etc/init.d/Freeswitch

14.Configure Freeswitch to start on boot :


a. chkconfig --add Freeswitch
b. chkconfig freeswitch on
14 You need to change the default init script. It points to Freeswitch being installed

in /opt/freeswitch/ however we installed it in /usr/local/freeswitch/


You need to change the lines:
1 FS_FILE=${FS_FILE-/opt/freeswitch/bin/freeswitch}
2 FS_HOME=${FS_HOME-/opt/freeswitch}
To
FS_FILE=${FS_FILE-/usr/local/freeswitch/bin/freeswitch}
FS_HOME=${FS_HOME-/usr/local/freeswitch}

Next we need to change the freeswitch directory permissions as we will be running it under the
1freeswitch account
21 [root@voip local]# cd /usr/local
2 [root@voip local]# chown -R freeswitch freeswitch
3 [root@voip local]# chgrp -R freeswitch freeswitch
For performance reasons it is recommended to change the kernel boot parameters to disable the
tickless feature. To do this you need to add nohz=off to the end of your boot parameters in your

grub.conf.
1 [root@voip freeswitch]# vim /boot/grub/grub.conf
Add to the end of the line starting with kernel to add nohz=off at the end. Mine becomes
1
kernel /vmlinuz-2.6.32-71.el6.x86_64 ro root=/dev/mapper/vg_voip-lv_root
rd_LVM_LV=vg_voip/lv_root rd_LVM_LV=vg_voip/lv_swap rd_NO_LUKS rd_NO_MD
rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc
KEYTABLE=us crashkernel=auto rhgb quiet nohz=off
Restart for the kernel parameter to take effect.

S-ar putea să vă placă și