一、freeswitch编译(版本1.8.5)
1.Ubuntu 16.04编译:
更改ubuntu源使用阿里源
deb-src http://archive.ubuntu.com/ubuntu xenial main restricted #Added by software-properties
deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted
deb-src http://mirrors.aliyun.com/ubuntu/ xenial main restricted multiverse universe #Added by software-properties
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted multiverse universe #Added by software-properties
deb http://mirrors.aliyun.com/ubuntu/ xenial universe
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates universe
deb http://mirrors.aliyun.com/ubuntu/ xenial multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse #Added by software-properties
deb http://archive.canonical.com/ubuntu xenial partner
deb-src http://archive.canonical.com/ubuntu xenial partner
deb http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted multiverse universe #Added by software-properties
deb http://mirrors.aliyun.com/ubuntu/ xenial-security universe
deb http://mirrors.aliyun.com/ubuntu/ xenial-security multiverse
2.安装依赖
sudo apt-get install -y git build-essential automake autoconf libtool-bin uuid-dev g++ zlib1g-dev libjpeg-dev libncurses5-dev libsqlite3-dev libcurl4-openssl-dev libpcre3-dev libspeex-dev libspeexdsp-dev libldns-dev libedit-dev libssl-dev pkg-config yasm liblua5.2-dev liblua5.2 libsndfile-dev libpq-dev libtiff5-dev libtiff5 libavformat-dev libavcodec-dev libavresample-dev libswresample-dev libswscale-dev libavutil-dev libopus-dev
3.执行./rebootstrap.sh
4../configure
5.make & sudo make install
解决缺少libks和signalwire的问题
https://github.com/Kitware/CMake/releases/download/v3.14.2/cmake-3.14.2.tar.gz
./configure
make
sudo make install
git clone https://github.com/signalwire/libks.git](https://github.com/signalwire/libks.git
cmake .
make
sudo make install
git clone https://github.com/signalwire/signalwire-c.git](https://github.com/signalwire/signalwire-c.git
cmake .
make
sudo make install
二、会议室和多编码配置
1.verto.conf.xml
<vhosts>
<vhost domain="localhost">
<param name="alias" value="seven.local freeswitch.org"/>
<param name="root" value="E:\\code\\freeswitch-1.8.5\\html5\\verto\\video_demo"/>
<param name="index" value="index.html"/>
<!--
<param name="auth-realm" value="FreeSWITCH"/>
<param name="auth-user" value="freeswitch"/>
<param name="auth-pass" value="rocks"/>
-->
</vhost>
</vhosts>
<param name="outbound-codec-string" value="opus,vp9"/>
<param name="inbound-codec-string" value="opus,vp9"/>
2.vpx.conf.xml
支持vp9
<profile name="vp9">
<param name="g-profile" value="0"/>
<!-- DEFULT | PARTITIONS -->
<param name="g-error-resilient" value="**DEFAULT**"/>
3.var.conf.xml
支持多编码
<X-PRE-PROCESS cmd="set" data="global_codec_prefs=OPUS,G722,PCMU,PCMA,VP8,VP9,H264"/>
<X-PRE-PROCESS cmd="set" data="outbound_codec_prefs=OPUS,G722,PCMU,PCMA,VP8,VP9,H264"/>
网友评论