【ubuntu 16.04】Ubuntu 安装配置freeswitch教程详解

更新时间:2020-01-11    来源:php安装    手机版     字体:

【www.bbyears.com--php安装】

一、安装依赖

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

本文来源:http://www.bbyears.com/jiaocheng/84412.html

热门标签

更多>>

本类排行