一、freeswitch
注意区分CentOS 6/7,不同版本编译的时候会有些差别。比如6上不会提示opus-devel,但是7必须安装。
二、Libshout
1
| yum install -y http://mirror.centos.org/centos/7/os/x86_64/Packages/libshout-2.2.2-11.el7.x86_64.rpm
|
三、执行命令:
1
| yum install -y http://files.freeswitch.org/freeswitch-release-1-6.noarch.rpm
|
四、按照依赖
1
| yum install -y git alsa-lib-devel autoconf automake bison broadvoice-devel bzip2 curl-devel libmpg123-devel libmp3lame-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 opus-devel libvorbis libvorbis-devel libogg libogg-devel
|
五、下载
1 2
| cd /usr/local/src git clone -b v1.6 https://freeswitch.org/stash/scm/fs/freeswitch.git freeswitch
|
六、编译
1 2 3 4 5 6 7 8 9 10 11
| cd /usr/local/src/freeswitch ./bootstrap.sh -j
./configure --enable-core-odbc-support --enable-zrtp \ --enable-core-pgsql-support \ --enable-static-v8 --disable-parallel-build-v8
#或者执行命令: ./configure -C --enable-core-odbc-support --enable-zrtp \ --enable-core-pgsql-support \ --enable-static-v8 --disable-parallel-build-v8
|
七、 编辑modoul.xml
1 2
| 将 #applications/mod_callcenter 、 #formats/mod_shout 、 #say/mod_say_zh #applications/mod_curl 的"#"给去掉并,保存 如果make的时候抛错,吧 #formats/mod_shout的注释重新加上。
|
八、继续编译安装
1 2 3 4 5 6
| make make -j install
#以下命令执行时下载文件的时间会很久 make -j cd-sounds-install make -j cd-moh-install
|
九、相关配置文件
线路参数
1 2 3 4 5 6 7 8
| conf/sip_profiles/external/uckefu.xml <include> <gateway name="uckef"> <param name="proxy" value="59.110.14.46:6060"/> <param name="from-user" value="3000001"/> <param name="register" value="false"/> </gateway> </include>
|
电话号码
资料:https://blog.csdn.net/tcscy/article/details/71169688