快捷搜索:  汽车  科技

freeswitch安全配置(Freeswitch编译安装)

freeswitch安全配置(Freeswitch编译安装)yum install -y gcc-c autoconf automake libtool 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 libvpx-devel libvpx2* libdb4* libidn-devel unbound-devel libuuid-devel lua-devel libsndfile-devel yasm-develyum install -y yum-plugin-ovl centos-release-scl rpmdevtools yum-utils g

freeswitch安全配置(Freeswitch编译安装)(1)

一、环境

centos 7.9

freeswitch 1.10.7

二、安装依赖

安装依赖命令如下:

yum install -y https://files.freeswitch.org/repo/yum/centos-release/freeswitch-release-repo-0-1.noarch.rpm epel-release

yum install -y yum-utils --enablerepo=extras

yum install -y yum-plugin-ovl centos-release-scl rpmdevtools yum-utils git wget vim devtoolset-7-gcc* devtoolset-7 libtiff-devel cmake3 libatomic unixODBC unixODBC-devel.x86_64 postgresql-libs postgresql-devel libpqxx-devel

yum install -y gcc-c autoconf automake libtool 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 libvpx-devel libvpx2* libdb4* libidn-devel unbound-devel libuuid-devel lua-devel libsndfile-devel yasm-devel

yum install -y git alsa-lib-devel autoconf automake bison broadvoice-devel bzip2 curl-devel libdb4-devel e2fsprogs-devel erlang 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 pcre-devel perl perl-ExtUtils-Embed pkgconfig portaudio-devel postgresql-devel python-devel python-devel soundtouch-devel speex-devel sqlite-devel unbound-devel unixODBC-devel wget which yasm zlib-devel libshout-devel libmpg123-devel lame-devel libatomic opus-devel

三、下载源码

freeswitch下载地址: https://github.com/signalwire/freeswitch.git

手动安装库:spandsp和sofia-sip

下载命令:

cd /data

git clone -b v1.10.7 https://github.com/signalwire/freeswitch

cd /data/freeswitch

git clone https://github.com/freeswitch/spandsp.git

git clone https://github.com/freeswitch/sofia-sip.git

四、编译

1. 编译必需库

编译spandsp和sofia-sip

#编译spandsp

cd /data/freeswitch/spandsp

./bootstrap.sh

./configure

make

make install

#编译sofia-sip

cd /data/freeswitch/sofia-sip

./bootstrap.sh

./configure

make

make install

#添加库的路径到系统

export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig

ldconfig

2. 修改 /data/freeswitch/modules.conf

vim /data/freeswitch/modules.conf

找到mod_signalwire和mod_av注释掉

#applications/mod_signalwire

#applications/mod_av

3. 编译freeswitch

cd /data/freeswitch

./bootstrap.sh

./configure --enable-portable-binary --prefix=/usr/local/freeswitch --with-gnu-ld --with-python --with-openssl --enable-core-odbc-support --enable-zrtp

make

make install

五、验证

freeswitch安装完成之后,下一步就是启动freeswitch并验证可用性了。

首先

1. 启动freeswitch

cd /usr/local/freeswitch/bin

./freeswitch -nonat

猜您喜欢: