首先安装freeswitch的运行库:
--更新yum yum update --安装依赖? yum install -y git gcc-c++ wget alsa-lib-devel autoconf automake bison broadvoice-devel bzip2 curl-devel db-devel e2fsprogs-devel flite-devel g722_1-devel 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 libtiff-devel libtheora-devel libtool 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 libuuid-devel which yasm zlib-devel? ?
下载源码包
--进入安装目录 cd /usr/local/src --下载源码包 wget ?http://files.freeswitch.org/freeswitch-releases/freeswitch-1.10.6.-release.tar.gz --解压源码压缩包 tar zxvf freeswitch-1.10.6.-release.tar.gz? ?
安装必要的模块
--进入目录 cd freeswitch-1.10.6.-release --编译(会出现编译错误) ./configure
缺少sofia-sip和spandsp模块
--安装sofia-sip模块 cd /usr/local/src/freeswitch-1.10.6.-release? git clone https://ghproxy.com/https://ghproxy.com/https://ghproxy.com/https://github.com/freeswitch/sofia-sip.git cd sofia-sip? ./bootstrap.sh -j? ./configure? make? make install? ldconfig
--安装spandsp模块 cd /usr/local/src/freeswitch-1.10.6.-release? git clone GitHub Proxy 代理加速?https://github.com/freeswitch/spandsp.git? cd spandsp? ./bootstrap.sh -j? ./configure? make? make install? export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:${PKG_CONFIG_PATH}? ldconfig
因为这些模块未使用到所以选择不安装 在/usr/local/src/freeswitch-1.10.6.-release/modules.conf中注释掉对应模块即可不安装 禁用的模块有:mod_opus mod_signalwire applications/mod_av 取消禁用 mod_xml_curl ?
|