freeSWITCH
新版本已經將 Sofia-sip
、 SpanDSP
獨立,安裝freeSWITCH
之前需要編譯 Sofia-sip
、 SpanDSP
函數庫才能正確執行,以下操作請在root
權限或是sudo
。
安裝套件
sudo apt install -y git subversion build-essential autoconf automake libtool libncurses5 libncurses5-dev make libjpeg-dev libtool libtool-bin libsqlite3-dev libpcre3-dev libspeexdsp-dev libldns-dev libedit-dev yasm libopus-dev cmake autoconf libtool liblua5.2-dev libcurl4-openssl-dev libexpat1-dev libgnutls28-dev libtiff5-dev libx11-dev unixodbc-dev libssl-dev python-dev zlib1g-dev libasound2-dev libogg-dev libvorbis-dev libperl-dev libgdbm-dev libdb-dev uuid-dev libsndfile1-dev libmariadb-dev python3 pip
下載 Sofia-sip 原始碼
使用 git
將原始碼clone
:
git clone https://github.com/freeswitch/sofia-sip
Build Sofia-sip
進入剛剛clone
下來的原始碼目錄並建立configure
設定檔程式
cd sofia-sip ./bootstrap.sh + AUTOMAKE=automake ACLOCAL=aclocal + export AUTOMAKE ACLOCAL + autoreconf -i libtoolize: putting auxiliary files in '.'. libtoolize: copying file './ltmain.sh' libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'. libtoolize: copying file 'm4/libtool.m4' libtoolize: copying file 'm4/ltoptions.m4' libtoolize: copying file 'm4/ltsugar.m4' libtoolize: copying file 'm4/ltversion.m4' libtoolize: copying file 'm4/lt~obsolete.m4' configure.ac:41: installing './compile' configure.ac:35: installing './config.guess' configure.ac:35: installing './config.sub' configure.ac:37: installing './install-sh' configure.ac:37: installing './missing' libsofia-sip-ua-glib/su-glib/Makefile.am: installing './depcomp' parallel-tests: installing './test-driver' + + find . ( -namexargs run* chmod -o +x -name *.sh ) -a -type f + chmod +x scripts/coverage scripts/fix-include-sofia-sip scripts/hide_emails.sh scripts/lcov-report scripts/rpmbuild-snaphot scripts/uncovered
執行設定檔配置檢查,無問題進行make
編譯,編譯完成後進行make install
將函數庫安裝至系統
./configure make make install
Build SpanDSP
方法如前面章節一樣的方式將原始碼編譯並安裝至系統:
git clone https://github.com/freeswitch/spandsp ./bootstrap.sh ./configure make make install
接下來就可以進行套件方法安裝freeSWITCH
主程式
The post Pi 安裝freeSWITCH (1)-編譯 Sofia-sip and SpanDSP appeared first on 可丁丹尼 @ 一路往前走2.0.