您的位置:首页 > 其它

freeswitch编译

2016-02-13 22:46 435 查看
编译1.6版本的话,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


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/`whoami`/fs/freeswitch-bin;make sounds-install moh-install;make install


运行

bin/freeswitch -nc
bin/fs_cli


linphone配置:

虚拟机里面的话,记得把视频关闭,否则在呼叫的时候崩溃,很头疼
sip账户管理,添加
您的sip地址:sip:1000@fs_ip
sip代理地址:fs_ip
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: