CentOS下搭建FreeSwitch

安装以下依赖项:

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
wget  http://files.freeswitch.org/freeswitch-releases/freeswitch-1.8.2.tar.bz2
wget http://files.freeswitch.org/freeswitch-releases/freeswitch-1.10.0.-release.tar.gz
tar xvjf freeswitch-1.8.2.tar.bz2
cd freeswitch-1.8.2
./configure
make
make install

#语音包是安装在 /usr/local/freeswitch-1.8.2/sounds 下的
1、make sounds-install
2、make moh-install
# 以下高质量的声音文件可选择安装
make cd-sounds-install
make cd-moh-install
fs_error.png

yum remove opus
wget https://archive.mozilla.org/pub/opus/opus-1.3.1.tar.gz
tar xvfz opus-1.3.1.tar.gz
cd opus-1.3.1
./configure
make
make install

配置FreeSWITCH

FreeSWITCH 1.6.14配置为默认使用SIP.js。默认配置位置是/usr/local/freeswitch/conf。

socket相关配置
/autoload_configs/event_socket.conf.xml









修改配置文件/usr/local/freeswitch/conf/vars.xml中的默认密码

启动FreeSWITCH : /usr/local/freeswitch/bin/freeswitch
netstat -tunlp | grep freeswitch
netstat -ntlp
skill -9 23652

centos 7 用这个关闭防火墙。 firewall-cmd --state 查看防火墙的状态,如果是not running就是关闭了防火墙的,然后再次注册,果然是OK的

CentOS7使用firewalld打开关闭防火墙与端口

1、firewalld的基本使用

启动: systemctl start firewalld

关闭: systemctl stop firewalld

查看状态: systemctl status firewalld

开机禁用 : systemctl disable firewalld

开机启用 : systemctl enable firewalld

拨打外部电话
conf/dialplan/default.xml







添加b.xml
conf/sip_profiles/external/b.xml








AIO100配置

freeswitch.jpg

你可能感兴趣的:(CentOS下搭建FreeSwitch)