freeswitch编译

debian的包太老了,添加新源

echo "deb http://files.freeswitch.org/repo/deb/debian/ jessie main" > /etc/apt/sources.list.d/freeswitch.list
wget -O - http://files.freeswitch.org/repo/deb/debian/key.gpg |apt-key add -

 

下载源码

git clone https://freeswitch.org/stash/scm/fs/freeswitch.git
或者
git clone -b v1.6 https://freeswitch.org/stash/scm/fs/freeswitch.git 1.6

 

安装编译需要的东西

sudo apt-get install autoconf libtool-bin libghc-zlib-dev libjpeg-dev pkg-config libsqlite3-dev libcurl4-openssl-dev libpcre++-dev libspeex-dev libspeexdsp-dev libldns-dev libedit-dev liblua5.2-dev libyuv-dev libvpx2-dev libopus-dev libsndfile-dev

 

编译freeswitch

./bootstrap
修改源码目录下的modules.conf,去掉erlang模块注释
./configure --prefix=/home/`whoami`/fs/freeswitch-bin
make sounds-install moh-install
make install

 

你可能感兴趣的:(freeswitch编译)