** add EPEL Repository [[email protected] /]# wget http://dl.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm [[email protected] /]# rpm -ivh epel-release-5-4.noarch.rpm ** freeswitch prerequisites [[email protected] /]# yum -y install git autoconf automake libtool ncurses-devel libjpeg-devel [[email protected] /]# yum -y install expat-devel openssl-devel libtiff-devel libX11-devel unixODBC-devel libssl-devel python-devel zlib-devel libzrtpcpp-devel alsa-lib-devel libogg-devel libvorbis-devel perl-libs gdbm-devel libdb-devel uuid-devel @development-tools [[email protected] /]# cd /usr/local/src [[email protected] src]# git clone git://git.freeswitch.org/freeswitch.git [[email protected] src]# cd freeswitch [[email protected] freeswitch]# ./configure -prefix=/opt/freeswitch [[email protected] freeswitch]# make [[email protected] freeswitch]# make all install cd-sounds-install cd-moh-install **create init script [[email protected] freeswitch]# adduser freeswitch -g daemon -d /opt/freeswitch [[email protected] freeswitch]# chown -R freeswitch:daemon /opt/freeswitch/ [[email protected] freeswitch]# chmod -R o-rwx /opt/freeswitch/ [[email protected] freeswitch]# cp /usr/local/src/freeswitch/build/freeswitch.init.redhat /etc/init.d/freeswitch [[email protected] freeswitch]# chmod +x /etc/init.d/freeswitch [[email protected] freeswitch]# chkconfig --level 345 freeswitch on [[email protected] freeswitch]# vi /etc/init.d/freeswitch ** running freeswitch [[email protected] /]# service freeswitch start [[email protected] /]#
Source :
http://wiki.freeswitch.org/wiki/Linux_Quick_Install_Guide
http://wiki.freeswitch.org/wiki/Freeswitch_init