Was this page helpful?

安裝 Digium 的 G.729 codec

    如果想購買 Digium 的 G.729 codec 來使用,可以參考本篇的教學。

    流程如下:

    1. 透過 Digium 網站購買授權,並取得一組序號。
    2. 安裝官方的註冊工具-register,並完成註冊程序。
    3. 安裝檢測工具-benchg729-1.0.8-x86_32,以CPU類型下載適合的安裝檔。
    4. 從官方下載安裝檔。
    5. 解壓檔案並完成安裝。

    檢測CPU

    下載位置:http://downloads.digium.com/pub/tele...729/benchg729/

    # cd /usr/src
    # wget http://downloads.digium.com/pub/telephony/codec_g729/benchg729/x86-32/benchg729-1.0.8-x86_32
    # chmod u+x benchg729-1.0.8-x86_32
    # ./benchg729-1.0.8-x86_32 
    
    ...
    ...
    Average for flavor 'athlon-xp' is 1198 milliseconds of CPU time.
    Average for flavor 'opteron' is 1331 milliseconds of CPU time.
    Average for flavor 'c3' is 1393 milliseconds of CPU time.
    Average for flavor 'c3-2' is 1154 milliseconds of CPU time.
    
    Recommended flavor for this system is 'pentium3m' with an average of 1119 milliseconds of CPU time.
    

    以我的機器來說,檢測工具建議使用 'pentium3m' 類型。

    下載 codec 及安裝

    下載網頁:http://www.digium.com/en/docs/G729/g729-download.php

    # cd /usr/src
    # wget http://downloads.digium.com/pub/telephony/codec_g729/asterisk-1.6.2.0/x86-32/codec_g729a-1.6.2.0_3.1.5-pentium3m_32.tar.gz 
    # tar xzf codec_g729a-1.6.2.0_3.1.5-pentium3m_32.tar.gz
    # cd codec_g729a-1.6.2.0_3.1.5-pentium3m_32
    # amportal stop
    # cp codec_g729a.so /usr/lib/asterisk/modules/
    # amportal start
    # asterisk -rx "g729 show licenses"

    比較免費版及付費版

    Digium 付費版:

    [root@localhost ~]# asterisk -rx "core show translation" | grep g729
                   g723   gsm  ulaw  alaw g726aal2  adpcm  slin    lpc10   g729 speex   ilbc  g726   g722  siren7 siren14  slin16
         g729 22329  9999  5000  5000    10998   5665      4999 11998    -      38994     -    10998  6998      -       -           10664

    免費版:

    [root@localhost g729_codec]# asterisk -rx "core show translation" | grep g729
                  g723   gsm   ulaw  alaw g726aal2 adpcm  slin    lpc10  g729 speex  ilbc  g726  g722 siren7 siren14 slin16
         g729 20663  8331  3000  3000     9664   3665      2999  9998     -     36660     -   9664  4998      -       -          8664
    

    心得報告

    1. Digium 的 G.729 轉碼時間竟然比免費版還長。
    2. 載入 Digium 的版本後,執行 amportal stop,無法正常關閉Asterisk服務。
    Was this page helpful?
    標籤 (Edit tags)
    您必須 登入 才能發佈評論。
    Powered by MindTouch Core