引用來源:http://www.osslab.com.tw/VoIP/IP_PBX/%E8%BB%9F%E9%AB%94%E5%BC%8F_IP_PBX/Asterisk/Tips/%E5%A6%82%E4%BD%95%E8%A8%AD%E5%AE%9A%E5%BD%B1%E5%83%8F%28Video%29%E6%94%AF%E6%8F%B4
編輯 /etc/asterisk/sip_general_custom.conf,增加這幾行。
; Enable Video Support
; Start of video support http://www.elastix.org/index.php?option=com_openwiki&Itemid=27&id=video_support
videosupport=yes
maxcallbitrate=384
allow=h263
allow=h261
allow=263p
allow=h264
套用新設定
CLI>sip reload
分機設定時需注意這幾個參數
- canreinvite = no
- disallow = all
- allow = g729&ilbc&h261&h263&h264
若用戶端都在 LAN 上,disallow & allow 可以維持空白。
2011年12月27日 星期二
2011年12月22日 星期四
Install G723 & G729 For Elastix 2.2
引用來源:http://www.osslab.com.tw/index.php?title=VoIP/IP_PBX/%E8%BB%9F%E9%AB%94%E5%BC%8F_IP_PBX/Asterisk/Tips/%E5%A6%82%E4%BD%95%E5%AE%89%E8%A3%9D_codec_g.729_%26_g.723
此篇適用 Elastix、Trixbox及 PBXinaFlash 等用戶,以手動方式安裝語音編碼,如需要自動安裝請參考 Codec 自動安裝工具。
下載適合自己機器及軟體版本的模組檔,基本上略分為 pentium/pentium2/pentium3/x86_64,Asterisk 1.2/1.4/1.6。
前往 http://asterisk.hosting.lv/
Note: 在 Linux 要檢查 CPU 資訊,可以執行 cat /proc/cpuinfo。
安裝 codec 只需要將模組檔複製到 Asterisk 主機上,目錄為 /usr/lib/asterisk/modules。
#cp codec_g723-ast18-gcc4-glibc-core2.so /usr/lib/asterisk/modules #cp codec_g729-ast18-gcc4-glibc-core2.so /usr/lib/asterisk/modules #chmod 0755 /usr/lib/asterisk/modules/codec_g723-ast18-gcc4-glibc-core2.so #chmod 0755 /usr/lib/asterisk/modules/codec_g729-ast18-gcc4-glibc-core2.so
# service asterisk restart **重新啟動asterisk 服務
Note: 如果不想停止服務,可以在 CLI 載入模組檔,請執行:
#asterisk -rx "load codec_g723-ast18-gcc4-glibc-core2.so" #asterisk -rx "load codec_g729-ast18-gcc4-glibc-core2.so"
到這裡,如果沒有發生任何錯誤,codec 就已經安裝完成,但 Asterisk 預設並未啟用這兩個額外裝的 codec,所以繼續下一步將它們啟用。
Elastix UI -> PBX -> Tools -> File Editor 搜尋 sip_general_custom.conf,加上這幾行。
allow=g729 allow=g723存檔離開,選擇 Asterisk-Cli,輸入 sip reload 按執行,套用新設定。
最後,檢查系統是否已支援 codec g.729 & g.723:
Elastix UI -> PBX -> Toosl -> Asterisk-Cli,執行 core show translation recalc 10。
列表中,不能全出現 - 就可以了。
2011年12月21日 星期三
Install iLBC For Elastix 2.2
參考來源:http://www.sunshinenetworks.com.au/how-to/78-install-ilbc-codec-in-elastix-20.html
參考來源:http://blog.osslab.com.tw/?p=732
安裝環境:
Elastix 2.2 Std、Asterisk 1.8.7,並執行yum -y update更新。
安裝套件:Web\Elastix\Updates\Packages
1.ncurses-devel
2.speex-devel **沒安裝的話在執行make install後speex會無法支援
iLBC編譯安裝如下:
# cd /usr/src/
# wget http://downloads.asterisk.org/pub/telephony/asterisk/old-releases/asterisk-1.8.7.0.tar.gz
# tar xvzf asterisk-1.8.7.0.tar.gz
# cd asterisk-1.8.7.0
# ./contrib/scripts/get_ilbc_source.sh **codecs/ilbc下應該會有51個檔案。
# ./configure --disable-xmldoc **檢查編譯環境
# make menuconfig
用鍵盤移動並選擇Codec Translators -> codec_ilbc (星號標註)
Click Save and Exit **按s存檔離開
# make **開始編譯
# make install **安裝編譯後的模組
# service asterisk restart **重新啟動asterisk 服務
查看iLBC是否安裝成功。
# asterisk -r **進入CLI模式
*CLI> core show translation recalc
正確安裝時iLBC後面不會全為"-"
參考來源:http://blog.osslab.com.tw/?p=732
安裝環境:
Elastix 2.2 Std、Asterisk 1.8.7,並執行yum -y update更新。
安裝套件:Web\Elastix\Updates\Packages
1.ncurses-devel
2.speex-devel **沒安裝的話在執行make install後speex會無法支援
iLBC編譯安裝如下:
# cd /usr/src/
# wget http://downloads.asterisk.org/pub/telephony/asterisk/old-releases/asterisk-1.8.7.0.tar.gz
# tar xvzf asterisk-1.8.7.0.tar.gz
# cd asterisk-1.8.7.0
# ./contrib/scripts/get_ilbc_source.sh **codecs/ilbc下應該會有51個檔案。
# ./configure --disable-xmldoc **檢查編譯環境
# make menuconfig
用鍵盤移動並選擇Codec Translators -> codec_ilbc (星號標註)
Click Save and Exit **按s存檔離開
# make **開始編譯
# make install **安裝編譯後的模組
# service asterisk restart **重新啟動asterisk 服務
查看iLBC是否安裝成功。
# asterisk -r **進入CLI模式
*CLI> core show translation recalc
正確安裝時iLBC後面不會全為"-"
訂閱:
文章 (Atom)