一聚教程网:一个值得你收藏的教程网站

最新下载

热门教程

Ubuntu 安装配置freeswitch教程详解

时间:2022-06-30 19:14:59 编辑:袖梨 来源:一聚教程网

一、安装依赖

apt-get install autoconf automake devscripts gawk g++ git-core 'libjpeg-dev|libjpeg62-turbo-dev' libncurses5-dev 'libtool-bin|libtool' make python-dev gawk pkg-config libtiff5-dev libperl-dev libgdbm-dev libdb-dev gettext libssl-dev libcurl4-openssl-dev libpcre3-dev libspeex-dev libspeexdsp-dev libsqlite3-dev libedit-dev libldns-dev libpq-dev

./bootstrap.sh -j

vim modules.conf

./configure --with-python --enable-core-odbc-support --enable-core-pgsql-support

make && make install

二、安装声音文件

make cd-sounds-install cd-moh-install

三、配置相关目录和程序权限

cd /usr/local

adduser --disabled-password  --quiet --system --home /usr/local/freeswitch --gecos "FreeSWITCH Voice Platform" --ingroup daemon freeswitch

chown -R freeswitch:daemon /usr/local/freeswitch/

chmod -R ug=rwX,o= /usr/local/freeswitch/

chmod -R u=rwx,g=rx /usr/local/freeswitch/bin/*

四、配置启动

ln /usr/local/freeswitch/bin/freeswitch /usr/bin/freeswitch

mkdir /etc/freeswitch

ln /usr/local/freeswitch/conf/freeswitch.xml /etc/freeswitch/freeswitch.xml

chown freeswitch:daemon /etc/freeswitch

chmod ug=rwx,o= /etc/freeswitch

mkdir /var/lib/freeswitch

chown freeswitch:daemon /var/lib/freeswitch

chmod -R ug=rwX,o= /var/lib/freeswitch

cp /usr/src/freeswitch/debian/freeswitch-sysvinit.freeswitch.default /etc/default/freeswitch

chown freeswitch:daemon /etc/default/freeswitch

chmod ug=rw,o= /etc/default/freeswitch

cp /usr/src/freeswitch/debian/freeswitch-sysvinit.freeswitch.init  /etc/init.d/freeswitch

chown freeswitch:daemon /etc/init.d/freeswitch

chmod u=rwx,g=rx,o= /etc/init.d/freeswitch

update-rc.d freeswitch defaults

ln /etc/init.d/freeswitch /usr/local/bin/fs

热门栏目