centos 7 安装freeswitch

安装wget
yum -y install wget


更换阿里源,下载速度会快点
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
yum makecache


安装git 
yum -y install git 




下载freeswitch 代码

 git clone  https://freeswitch.org/stash/scm/fs/freeswitch.git freeswitch.git


我直接用FTP拷贝到centos上。所以要安装ftp
yum -y install ftp vsftpd
systemctl start vsftpd
systemctl enable vsftpd

systemctl stop firewalld




配置防火墙
systemctl stop firewalld
yum remove firewalld
yum -y install iptables-services
vi /etc/sysconfig/iptables增加
-A INPUT -m state --state NEW -m tcp -p tcp --dport 21 -j ACCEPT


systemctl start iptables
systemctl enable iptables



http://freeswitch.net.cn/17.html


cd /usr/local/src
git clone -b v1.6 https://freeswitch.org/stash/scm/fs/freeswitch.git freeswitch
cd /usr/local/src/freeswitch


安装依赖包:
yum install -y http://files.freeswitch.org/freeswitch-release-1-6.noarch.rpm epel-release
yum install -y git alsa-lib-devel autoconf automake bison broadvoice-devel bzip2 curl-devel db-devel e2fsprogs-devel flite-devel g722_1-devel gcc-c++ gdbm-devel gnutls-devel ilbc2-devel ldns-devel libcodec2-devel libcurl-devel libedit-devel libidn-devel libjpeg-devel libmemcached-devel libogg-devel libsilk-devel libsndfile-devel libtheora-devel libtiff-devel libtool libuuid-devel libvorbis-devel libxml2-devel lua-devel lzo-devel mongo-c-driver-devel ncurses-devel net-snmp-devel openssl-devel opus-devel pcre-devel perl perl-ExtUtils-Embed pkgconfig portaudio-devel postgresql-devel python26-devel python-devel soundtouch-devel speex-devel sqlite-devel unbound-devel unixODBC-devel wget which yasm zlib-devel
yum install -y 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 libxml2-devel libyuv-devel opus-devel libvpx-devel libvpx2* libdb4* libidn-devel unbound-devel libuuid-devel lua-devel libsndfile-devel yasm-devel
wget -c http://files.freeswitch.org/downloads/libs/libav-12.tar.bz2 
tar -jxvf libav-12.tar.bz2




mod_av 编译不过,注释掉modules.conf中的
applications/mod_av
applications/mod_avmd


./bootstrap.sh -j
./configure 


make


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


猜你喜欢

转载自blog.csdn.net/ssj901217/article/details/76906545
今日推荐