FreeSWITCH版本更新

【1】FreeSWITCH版本更新c++

從2014年10月底開始,FreeSWITCH代碼庫改成由stash管理,該管理工具能更好地與jira集成。git

若是你之前已經clone了代碼,請作以下更新:sql

git remote set-url origin https://freeswitch.org/stash/scm/fs/freeswitch.git bootstrap

不然,直接用如下地址進行克隆:curl

git clone https://freeswitch.org/stash/scm/fs/freeswitch.git工具

若僅克隆某個版本,命令以下:
url

git clone -b v1.4.14 https://freeswitch.org/stash/scm/fs/freeswitch.gitspa

【2】Linux環境編譯安裝FreeSWITCHcode

Linux環境編譯按FreeSWITCH共有三種方式:sqlite

不論哪一種方式,首先都須要安裝編譯依賴庫。因此,在安裝FreeSWITCH以前,先把依賴包安裝完成。

安裝依賴包命令:

yum install -y autoconf automake libtool gcc-c++ ncurses-devel make zlib-devel libjpeg-devel libevent openssl-devel e2fsprogs-devel curl-devel pcre-devel speex-devel sqlite-devel libedit-devel

第一種方式:從Git倉庫安裝

(1)獲取最新版

git clone https://freeswitch.org/stash/scm/fs/freeswitch.git

(2)獲取版本V1.4.14

git clone -b v1.4.14 https://freeswitch.org/stash/scm/fs/freeswitch.git

(3)在FreeSWITCH源代碼目錄中執行命令

[1]./bootstrap.sh

執行完後。若想要添加或刪除模塊兒的話,能夠修改/usr/src/freeswitch/modules.conf,在每行前面添加#來註釋掉不須要的模塊。

[2]./configure

[3]make install

第二種方式:解壓縮源碼包安裝

(1)使用wget獲取源代碼安裝包

wget http://files.freeswitch.org/freeswitch-1.4.14.tar.gz

(2)解壓縮

tar -zxvf freeswitch-1.4.14.tar.gz

(3)執行命令

[1]cd freeswitch-1.4.14

[2]./configure

[3]make install

備註:與第一步相比,它不須要執行bootstrap.sh。

由於源代碼在打成tar包前已經執行過了,於是不須要automake和autoconf工具),即可以直接配置安裝。

第三種方式:最快安裝

(1)執行命令

wget http://files.freeswitch.org/Makefile && make install

【3】下載語音包

make -j cd-sounds-install

make -j cd-moh-install

【4】建立快捷啓動

ln -sf /usr/local/freeswitch/bin/freeswitch /usr/bin/

ln -sf /usr/local/freeswitch/bin/fs_cli /usr/bin/

 

Good Good Study, Day Day Up.

順序 選擇 循環 總結

相關文章
相關標籤/搜索