yum remove cmake #卸载yum安装的版本,若无安装则忽略 cd /usr/local/src wget https://cmake.org/files/v3.14/cmake-3.14.0.tar.gz tar vzxf cmake-3.14.0.tar.gz cd cmake-3.14.0 ./configure make make install
安装libks
1 2 3 4 5 6 7
cd /usr/local/src yum install libatomic git clone https://github.com/signalwire/libks.git cd libks cmake . make make install
安装signalwire-c
1 2 3 4 5 6 7
cd /usr/local/src git clone https://github.com/signalwire/signalwire-c.git cd signalwire-c/ cmake . make make install ln -sf /usr/local/lib64/pkgconfig/signalwire_client.pc /usr/lib64/pkgconfig/signalwire_client.pc
编译x264
1 2 3 4
git clone http://git.videolan.org/git/x264.git ./configure –disable-asm make make install
编译安装mod_av
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
wget http://download1.rpmfusion.org/free/el/updates/7/x86_64/x/x264-libs-0.148-24.20170521gitaaa9aa8.el7.x86_64.rpm wget http://download1.rpmfusion.org/free/el/updates/7/x86_64/x/x264-devel-0.148-24.20170521gitaaa9aa8.el7.x86_64.rpm rpm -hiv x264-libs-0.148-24.20170521gitaaa9aa8.el7.x86_64.rpm rpm -hiv x264-devel-0.148-24.20170521gitaaa9aa8.el7.x86_64.rpm cd /usr/local/src git clone https://gitee.com/nwaycn/libav.git cd libav ./configure --enable-pic --enable-shared --enable-libx264 --enable-gpl --extra-libs="-ldl" make make install
cd /usr/local/src/freeswitch-1.10.5.-release git clone https://github.com/freeswitch/spandsp.git cd spandsp ./configure make make install ldconfig
安装sofia-sip
1 2 3 4 5 6 7 8
cd /usr/local/src/freeswitch-1.10.5.-release git clone https://github.com/freeswitch/sofia-sip.git cd sofia-sip ./bootstrap.sh -j ./configure make make install ldconfig
cd /usr/local/src/ tar vzxf freeswitch-1.10.5.-release.tar.gz cd freeswitch-1.10.5.-release ./configure --disable-signalwire # 如果在configure报错,再重新设置下包路径 make make install
You must install libopus-dev to build mod_opus. Stop.报错
<!-- for sip over websocket support --> <param name="ws-binding" value=":5066"/> <!-- for sip over secure websocket support --> <!-- You need wss.pem in $${certs_dir} for wss or one will be created for you --> <param name="wss-binding" value=":7443"/>