应朋友邀请,试了试 FreeSWITCH Ubuntu 18.04 源码编译,交的作业如下:
#!/bin/bash####### Ubuntu 18.04 LTS
####### ARM64
####### FreeSWITCH 1.10.12apt update && \
apt install -y --fix-missing git sed bison build-essential pkg-config uuid-dev zlib1g-dev libjpeg-dev libsqlite3-dev libcurl4-openssl-dev \libpcre3-dev libspeexdsp-dev libldns-dev libedit-dev libtiff5-dev yasm libopus-dev libsndfile1-dev unzip \libshout-dev libmpg123-dev libmp3lame-dev \libavformat-dev libswscale-dev libavresample-dev liblua5.2-dev liblua5.2 cmake libpq-dev \unixodbc-dev autoconf automake ntpdate libxml2-dev libpq-dev libpq5 sngrep # libksgit clone https://github.com/signalwire/libks.git /usr/src/libks
cd /usr/src/libks
cmake .
make && make install# sofia-sipgit clone https://github.com/freeswitch/sofia-sip /usr/src/sofia-sipcd /usr//src/sofia-sip
./bootstrap.sh
./configure
make && make install# spandspgit clone https://github.com/freeswitch/spandsp /usr/src/spandspcd /usr/src/spandsp
# https://github.com/signalwire/freeswitch/issues/2248
git checkout 0d2e6ac
./bootstrap.sh
./configure
make && make install# fsgit clone https://github.com/signalwire/freeswitch.git -b v1.10.12 /usr/src/freeswitch
cd /usr/src/freeswitch
./bootstrap.shsed -i '/mod_signalwire/d' modules.conf
sed -i '/mod_enum/d' modules.conf
sed -i '/mod_opus/d' modules.conf
sed -i 's+#formats/mod_shout+formats/mod_shout+g' modules.conf./configure
make && make install
make cd-sounds-install && make cd-moh-install echo '/usr/local/lib' >> /etc/ld.so.conf
ldconfigln -s /usr/local/freeswitch/bin/freeswitch /usr/bin
ln -s /usr/local/freeswitch/bin/fs_cli /usr/bin
不过,有大佬说,社区不建议用乌班图
参考链接:
https://gist.github.com/cyrenity/96cc1ad7979b719b1c684f90aa0f526d