编译1.6版本的话,debian的包就太老,需要添加新源
echo "deb http://files.freeswitch.org/repo/deb/debian/ jessie main" > /etc/apt/sources.list.d/freeswitch.listwget -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
1.4版本
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 libopus-dev libsndfile1-dev
编译freeswitch
./bootstrap.sh修改源码目录下的modules.conf,去掉erlang模块注释./configure --prefix=$HOME/fs/freeswitch-bin;make sounds-install moh-install;make install
运行
bin/freeswitch -ncbin/fs_cli
linphone配置:
虚拟机里面的话,记得把视频关闭,否则在呼叫的时候崩溃,很头疼sip账户管理,添加您的sip地址:sip:1000@fs_ipsip代理地址:fs_ip