ILBC codec

From Kolmisoft Wiki
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

The iLBC source has been removed from Asterisk due to licensing concerns

Can be installed back again using instructions from page: http://www.voip-info.org/wiki/view/iLBC


Simple instructions if above guide does not work

Go to your asterisk directory:

cd /usr/src/ASTERISKDIRECTORY

Afterwards

cd /contrib/scripts
wget -P codecs/ilbc  http://www.ietf.org/rfc/rfc3951.txt 
wget -q -O -  http://www.ilbcfreeware.org/documentation/extract-cfile.txt | tr -d '\r' > codecs/ilbc/extract-cfile.awk

cd codecs/ilbc && awk -f extract-cfile.awk rfc3951.txt

Copy all contents from

/usr/src/ASTERISKDIRECTORY/contrib/scripts/codecs/ilbc/ to /usr/src/ASTERISKDIRECTORY/codecs/ilbc/ directory

Recompile Asterisk for ilbc codec support:

cd /usr/src/ASTERISKDIRECTORY
./configure
make

Select ilbc codec for installation

make menuselect
make install

To check if codec is installed, connect to Asterisk CLI and issue command:

core show translations

You should get a similar output:

server*CLI> core show translation 
        Translation times between formats (in milliseconds) for one second of data
         Source Format (Rows) Destination Format (Columns)
         g723 gsm ulaw alaw g726aal2 adpcm slin lpc10 g729 speex ilbc g726 g722
    g723    -   2    2    2        2     2    1     3    6     -   14    2    2
     gsm    8   -    2    2        2     2    1     3    6     -   14    2    2
    ulaw    8   2    -    1        2     2    1     3    6     -   14    2    2
    alaw    8   2    1    -        2     2    1     3    6     -   14    2    2
g726aal2    8   2    2    2        -     2    1     3    6     -   14    2    2
   adpcm    8   2    2    2        2     -    1     3    6     -   14    2    2
    slin    7   1    1    1        1     1    -     2    5     -   13    1    1
   lpc10    8   2    2    2        2     2    1     -    6     -   14    2    2
    g729    8   2    2    2        2     2    1     3    -     -   14    2    2
   speex    -   -    -    -        -     -    -     -    -     -    -    -    -
    ilbc    9   3    3    3        3     3    2     4    7     -    -    3    3
    g726    8   2    2    2        2     2    1     3    6     -   14    -    2
    g722    8   2    2    2        2     2    1     3    6     -   14    2    -



Alternative method without recompiling entire Asterisk (tested on Asterisk 1.8.14)

rm -rf /usr/src/asterisk-1.8.14.0
cd /usr/src/
tar xvfz asterisk-1.8.14.0.tar.gz
cd /usr/src/asterisk-1.8.14.0
./configure
make menuconfig

Go to "Codec Translators" and make sure "codec_ilbc" is checked. Save changes and Exit (press x).

make
cp /usr/src/asterisk-1.8.14.0/codecs/codec_ilbc.so /usr/lib/asterisk/modules/
asterisk -vvvr
> module load codec_ilbc.so