このページは役立ちましたか?

G.729コーデックをアクティベートする

    目次
    ヘッダーがありません

    Support for G.729 is a part of trixbox Pro by default, however it is not activated (does not show up in the Admin CP) until a G.729 license has been activated.

    G.729 is a codec designed by Digium that can get calls down to around 8kbps (up and down) per call. It is a great alternative to G.711 ULAW which can be up around 80kbps (up and down) per call. G.729 costs $10.00 per license (per active channel), and is available from Digium.

    Please note that G.729 licenses are not supported by Fonality…if you are having any issues with your G.729 licenses, you need to call Digium support, not Fonality support.

    This document assumes that you have already purchased at least one G.729 license from Digium, and that you have received your license key via email. Keep that license key handy as we will need it soon.

    Onto the install…

    The first step is to download the G.729 codec and the register program from Digium. The register program is what you run to actually license G.729 on your trixbox Pro.

    Connect to your trixbox Pro system via SSH and download the appropriate files:

    cd /usr/src

    wget http://downloads.digium.com/pub/tele...32_i686.tar.gz

    wget http://downloads.digium.com/pub/regi...86-32/register

    *** Note that the version of the G.729 codec we are downloading is for Asterisk v1.2, and the processor version we are downloading is the i686 version. Fonality uses a modified version of Asterisk v1.2.17 as its PBX engine (hence the 1.2 version of the G.729 codec). In order to find out the processor type, you can run ‘uname -r’ at the Linux CLI.

    Now that you have downloaded the G.729 codec and the register program, it is time to install. Run this from the Linux CLI (assuming you are still in /usr/src):

    tar zxvf codec_g729a_v32_i686.tar.gz

    cd codec_g729a_v32_i686

    cp /usr/src/codec_g729a_v32_i686/codec_g729a.so /usr/lib/asterisk/modules

    chown nobody:nobody /usr/lib/asterisk/modules/codec_g729a.so

    The G.729 codec is now in the proper location…time to register the licenses:

    cd /usr/src

    chmod +x register

    ./register

    We have now started the register program. Choose these options:

    Please select a catagory - 1 - Digium Products

    Please select a product - 3 - G.729 Codec

    Please enter your Key-ID: (this is your license in the form of G729-XXXXXXXX)

    *** Note - if you receive an error stating 469 - Maximum Activations Reached, you need to call Digium support at (256) 428-6000 to have them reset your G.729 license.

    Do you want to register this key now? Y

    Scroll through the license agreement…make sure you read every word very carefully. ;)

    Do you accept this licensing agreement? Y

    First Name: (enter in your first name)
    Last Name: (enter in your last name)
    Company: (enter in your company name)
    Address 1: (enter in your address line 1)
    Address 2: (enter in your address line 2)
    City: (enter in your city)
    State: (enter in your state)
    Postal Code: (getting tired of this yet?)
    Country: (enter in your country)
    Phone: (definitely getting tired of this now)
    Email: (enter in your email)

    Phew…done with the interrogation. You should have received a message stating:

    Wrote license to /var/lib/asterisk/licenses/G729-XXXXXXXX.lic

    MAKE A BACKUP COPY OF YOUR LICENSE FILE!! Very important…if not, you’ll have to call back in to Digium to reset your license for you if you rebuild your system.

    You will now need to restart Asterisk:

    service asterisk stop

    service asterisk start

    You should now be able to go into the Asterisk console with an ‘asterisk -r’ and type the ’show g729′ command…you will see something like this:

    0/0 encoders/decoders of 1 licensed channels are currently in use

    This is telling me that I have 1 G.729 license installed, and that 0 licenses are currently in use. The ‘X licensed channels’ number should match the number of licenses you purchased from Digium.

    Well, now we’re all done with the installation, how the heck do we use G.729? The most common usage is to use G.729 to connect to your SIP provider. Not all SIP providers support G.729, but if yours does…great! Go to the properties of that SIP provider (Options –> voip) and click on the SIP trunk (or add a new one if it does not exist). Expand the ‘Advanced’ section, and you will see drop-down boxes for 3 codecs (Codec 1, Codec 2, Codec 3). If you have installed everything properly, ‘g729′ will be one of the choices in the drop-down box. These codecs are tried in order, so it would be best to put G.729 first, followed by ulaw (the G.711 uncompressed codec), followed by GSM (another compressed codec that is free). When done, it should look like this:

    g729

    Now, make a test call with that SIP account, and then do a ’show g729′ again while the call is in progress…you should see something like this:

    1/1 encoders/decoders of 1 licensed channels are currently in use

    We can see that my 1 G.729 license is in use. Success!

    このページは役立ちましたか?
    タグ (タグ編集)
    • No tags

    ファイル 0

     
    あなたはコメントを投稿するには ログイン しなければなりません。
    Powered by MindTouch Core