Was this page helpful?

Codec SILK with Asterisk 10+

    內容表格
    沒有標頭

    Asterisk 10 以後有支援新的編碼 SILK,這個編碼原先被用在 Skype 語音通訊軟體,後來 Skype 釋出了原始碼。

    讓 Asterisk 10/11 支援 SILK codec

    http://highsecurity.blogspot.ru/2013...risk-1011.html

    # cd /usr/src
    # wget http://downloads.digium.com/pub/telephony/codec_silk/benchsilk/x86-32/benchsilk-1.0.0-x86_32
    # chmod +x bench*
    # ./benchsilk-1.0.0-x86_32
    

    輸出結果

    benchsilk version 1.0.0
    
    Use the '-l' option to see license information for software
    included in this program.
    
    Running tests over 33 seconds of test data.
    Test run 1 for flavor 'generic' used 4873 milliseconds of CPU time.
    Test run 2 for flavor 'generic' used 4959 milliseconds of CPU time.
    Test run 3 for flavor 'generic' used 4988 milliseconds of CPU time.
    Test run 4 for flavor 'generic' used 4854 milliseconds of CPU time.
    Test run 5 for flavor 'generic' used 4989 milliseconds of CPU time.
    Test run 1 for flavor 'i686' used 4820 milliseconds of CPU time.
    ...
    ...
    Recommended flavor for this system is 'opteron-sse3' with an average of 4422 milliseconds of CPU time. 
    

    安裝 'opteron-sse3'

    # wget http://downloads.digium.com/pub/telephony/codec_silk/asterisk-11.0/x86-32/codec_silk-11.0_1.0.0-opteron_sse3_32.tar.gz
    # tar -xzf codec_silk*
    # cd codec_silk-11.0_1.0.0-opteron_sse3_32
    # cp codec* /usr/lib/asterisk/modules/ 
    

    編輯 /etc/asterisk/codecs.conf
    加上這幾行

    [silk8]
    type=silk
    samprate=8000
    fec=true
    packetloss_percentage=10
    maxbitrate=20000
    dtx=false
    
    [silk12]
    type=silk
    samprate=12000
    fec=true
    packetloss_percentage=10
    maxbitrate=25000
    dtx=false
    
    [silk16]
    type=silk
    samprate=16000
    fec=true
    packetloss_percentage=10
    maxbitrate=30000
    dtx=false
    
    [silk24]
    type=silk
    samprate=24000
    fec=true
    packetloss_percentage=10
    maxbitrate=40000
    dtx=false
    

    載入 codec

    # asterisk -rx "module load codec_silk.so"
    

    檢查 codec

    # asterisk –rx "core show translation"
    # asterisk –rx "core show codecs"
    
    Was this page helpful?
    標籤 (Edit tags)
    • No tags
    您必須 登入 才能發佈評論。
    Powered by MindTouch Core