Ubuntu安装freeSWITCH步骤


OS:ubuntu 18.04.1

安装依赖

apt-get update apt-get install -y autoconf git libtool g++ zlib1g-dev libjpeg-dev libsqlite3-dev libcurl4-openssl-dev libpcre3-dev libspeex-dev libspeexdsp-dev libldns-dev libedit-dev libssl-dev pkg-config yasm liblua50-dev libopus-dev libsndfile1-dev libpq-dev libreadline-dev lua5.2 lua5.2-doc liblua5.2-dev libtiff5 libtiff5-dev

cd /tmp && wget http://www.freeswitch.org.cn/Makefile && make

第一次编译肯定会报错,目录不对,我这样操作了编译就正常了。

修改文件名为freeswitch.git

mv freeswitch freeswitch.git
make

安装声音文件(高音质包含低音质)

make sounds-install    (标准提示音)
make  moh-install       (标准通话音乐)

安装简单配置

make samples

制作软连接

ln -sf /usr/local/freeswitch/bin/freeswitch /usr/bin/
ln -sf /usr/local/freeswitch/bin/fs_cli /usr/bin/

启动

freeswitch

关闭

shutdown