yum install -y git wget lrzsz
yum install -y autoconf automake libtool openssl* libtiff* libjpeg*
yum install -y gcc gcc-c++
yum install -y unixODBC-devel.x86_64
yum install -y mysql-connector-odbc.x86_64
yum install -y sqlite-devel
yum install -y curl-devel
yum install -y ldns-devel
yum install -y libedit-devel
yum install -y nasm
yum install -y lua-devel
yum install -y opus-devel
yum install -y postgresql-devel
yum install -y libsndfile-devel
git clone https://github.com/freeswitch/sofia-sip
cd sofia-sip
./bootstrap.sh
./configure
make
make install
git clone https://github.com/freeswitch/spandsp
cd spandsp
./bootstrap.sh
./configure
make
make install
yum install -y libshout-devel lame-devel libmpg123-devel
wget http://downloads.sourceforge.net/project/lame/lame/3.99/lame-3.99.5.tar.gz
tar -zxvf lame-3.99.5.tar.gz
cd lame-3.99.5
./configure --enable-static --enable-shared
make
make install
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
yum install -y https://files.freeswitch.org/repo/yum/centos-release/freeswitch-release-repo-0-1.noarch.rpm epel-release
yum install yum-utils
yum-builddep -y freeswitch --skip-broken
yum install -y yum-plugin-ovl centos-release-scl rpmdevtools
https://files.freeswitch.org/releases/freeswitch/freeswitch-1.10.7.-release.tar.gz
tar -zxvf freeswitch-1.10.7.-release.tar.gz
cd freeswitch-1.10.7.-release
./rebootstrap.sh
此時(shí)可以編輯配置需要編譯的freeswitch模塊,vi modules.conf 可以注釋掉不需要使用的模塊。
vi modules.conf #注釋掉不需要的視頻模塊 mod_av 和 mod_signalwire
./configure --enable-portable-binary \
--prefix=/usr/local/freeswitch \
--with-gnu-ld --with-openssl \
--enable-core-odbc-support --enable-zrtp \
--enable-libmp3lame
make
make -j install
make -j cd-sounds-install
make -j cd-moh-install
報(bào)錯(cuò)You must install libopus-dev to build mod_opus. Stop. 但確實(shí)已經(jīng) yum 安裝 libopus-dev 或 opus-devel 后依然報(bào)錯(cuò):
解決方法:
yum remove opus
wget https://archive.mozilla.org/pub/opus/opus-1.3.1.tar.gz
tar xvfz opus-1.3.1.tar.gz
cd opus-1.3.1
./configure
make
make install
cp /usr/lib/pkgconfig/opus.* /usr/lib64/pkgconfig/
在安裝過程中遇到未安裝依賴包的錯(cuò)誤,在正確安裝依賴包后,需要重新make編譯
make clean
./configure ...
make ...
/usr/local/freeswitch/bin/freeswitch -nonat -nosql
許多Mac用戶反應(yīng),裝了部分軟件后打不開,那可能是sip系統(tǒng)完整性沒有關(guān)閉。系統(tǒng)完整性保護(hù)是 OS X El Capitan 10.11及更高版本所采用的一項(xiàng)安全技術(shù),能夠幫助防止?jié)撛趷阂廛浖薷?Mac 上受保護(hù)的文件和文件夾。系統(tǒng)完整性保護(hù)可以限制 root 用戶帳戶,以及 root 用戶能夠在 Mac 操作系統(tǒng)的受保護(hù)部分完成的操作。那么SIP系統(tǒng)怎么禁用,SIP系統(tǒng)怎么關(guān)閉呢?下面小編為大家?guī)鞰ac上 sip系統(tǒng)完整性關(guān)閉方法.
在sip系統(tǒng)完整性關(guān)閉前,我們先檢查是否啟用了SIP系統(tǒng)完整性保護(hù)?
使用系統(tǒng)信息工具
打開“系統(tǒng)信息”應(yīng)用程序(按住Option鍵并單擊?Apple菜單選擇「系統(tǒng)信息」)
左側(cè)列表并選擇「軟件」
Mac上 sip系統(tǒng)完整性關(guān)閉方法具體操作步驟如下:
1、關(guān)機(jī),然后重新啟動(dòng)你的Mac電腦,在開機(jī)時(shí)一直按住Command+R迸入Recovery模式。
2、進(jìn)入Recovery模式后打開終端,如圖:
3、在終端上輸入命令 csrutil disable然后回車。
5、然后我們重啟電腦。