ilbc CODEC installed but not functioning

Discussion in 'General' started by yesmat, Nov 27, 2009.

  1. yesmat

    Joined:
    Mar 16, 2009
    Messages:
    103
    Likes Received:
    0
    Hi,

    I have followed instructions from the link below provided by chilling_silence (thanks for that its great) to install iLBC CODEC but i am having some issues..

    http://blogs.elastix.org/en/2009/11/ilb ... n-elastix/

    The iLBC CODEC seems to be installed as in:

    make menuconfig option 4 is surely showing ilbc codec ticked
    codec_ilbc.so is copied across to /usr/lib/asterisk/modules/
    chmod 755 codec_ilbc.so

    I also configured disallow=all and allow=ilbc under the Trunk PEER DETAILS.

    The problem is, when I dial out to any PSTN number, the destination phone rings fine, but when i pickup the call is disconnected immediately. When i try to dial INBOUND to my DID, I get a busy tone.

    if I change back to alaw or GSM everything goes back to normal again, inbound and outbound.

    during the few seconds while the phone is ringing and when I issue the Asterisk CLI command "sip show channels" i see the following:

    Peer User/ANR Call ID Seq (Tx/Rx) Format Hold Last Message
    <provider IP> 6427483228 1e45c5430c4 00103/00000 0x400 (ilbc) No Tx: INVITE
    192.168.1.25 3112 55c5e68cece 00101/17878 0x8 (alaw) No Rx: INVITE
    192.168.1.25 (None) 6d8debbc7dd 00101/14243 0x0 (nothing) No Rx: REGISTER


    One thing I noticed, under asterisk CLI> the codec_ilbc.so module is not available in the list of codecs to reload.

    So when I issue reload codec_ilbc.so this module is not there at all.

    I have reloaded the server completely after the install couple of times without any success.

    Any feedback is appreciated.

    Cheers


    UPDATE: I am using Elastix 1.6 running Asterisk 1.4.26.1 which is the default for this release of Elastix.

    The Asterisk source code that I used to install iLBC is 1.4.27.

    after download and untar I ran the following commands:

    ./configure
    make menuconfig
    make
    make install
     
  2. Chilling_Silence

    Joined:
    Sep 23, 2008
    Messages:
    488
    Likes Received:
    0
    You shouldn't need to run the make install, you only want the codec, not the whole of asterisk

    Long story short it isn't installed. Run:
    asterisk -rx "core show translation recalc 1"

    You should see:
    Code:
    # asterisk -rx "core show translation recalc 1"
             Recalculating Codec Translation (number of sample seconds: 1)
    
             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    -   -    -    -        -     -    -     -    -     -    -    -    -
          gsm    -   -    3    3        5     3    2     9   14    23   31    5    -
         ulaw    -   7    -    1        4     2    1     8   13    22   30    4    -
         alaw    -   7    1    -        4     2    1     8   13    22   30    4    -
     g726aal2    -   8    3    3        -     3    2     9   14    23   31    1    -
        adpcm    -   7    2    2        4     -    1     8   13    22   30    4    -
         slin    -   6    1    1        3     1    -     7   12    21   29    3    -
        lpc10    -  10    5    5        7     5    4     -   16    25   33    7    -
         g729    -  10    5    5        7     5    4    11    -    25   33    7    -
        speex    -  10    5    5        7     5    4    11   16     -   33    7    -
         ilbc    -  10    5    5        7     5    4    11   16    25    -    7    -
         g726    -   8    3    3        1     3    2     9   14    23   31    -    -
         g722    -   -    -    -        -     -    -     -    -     -    -    -    -
    
    Anyways, re-read the last paragraph of Part #4 of the How-To, I think you've missed the "copy" part or something along those lines:
    Code:
    ls -la /usr/lib/asterisk/modules | grep ilbc & ls -la /usr/lib64/asterisk/modules | grep ilbc
     
  3. yesmat

    Joined:
    Mar 16, 2009
    Messages:
    103
    Likes Received:
    0
    No I followed the How-To fully including copying the codec_ilbc.so module to /usr/lib/asterisk/modules/. maybe we need to chown asterisk:asterisk codec_ilbc.so..

    here is:

    Code:
    [root@pbx asterisk-1.4.27]# ls -al /usr/lib/asterisk/modules | grep ilbc
    -rwxr-xr-x 1 root root  730385 Nov 27 13:49 codec_ilbc.so
    -rwxr-xr-x 1 root root  133851 Nov 27 13:49 format_ilbc.so
    
    Also here is "core show translation recalc 1":

    Code:
     Recalculating Codec Translation (number of sample seconds: 1)
    
             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    -   -    -    -        -     -    -     -    -     -    -    -    -
          gsm    -   -    2    2        2     2    1     2    -    11   10    2    2
         ulaw    -   2    -    1        2     2    1     2    -    11   10    2    2
         alaw    -   2    1    -        2     2    1     2    -    11   10    2    2
     g726aal2    -   2    2    2        -     2    1     2    -    11   10    1    2
        adpcm    -   2    2    2        2     -    1     2    -    11   10    2    2
         slin    -   1    1    1        1     1    -     1    -    10    9    1    1
        lpc10    -   2    2    2        2     2    1     -    -    11   10    2    2
         g729    -   -    -    -        -     -    -     -    -     -    -    -    -
        speex    -   2    2    2        2     2    1     2    -     -   10    2    2
         ilbc    -   2    2    2        2     2    1     2    -    11    -    2    2
         g726    -   2    2    2        1     2    1     2    -    11   10    -    2
         g722    -   2    2    2        2     2    1     2    -    11   10    2    -
    
    Any other ideas?
     
  4. Chilling_Silence

    Joined:
    Sep 23, 2008
    Messages:
    488
    Likes Received:
    0
    Then you can see it *is* supporting iLBC.

    What endpoint are you using? If you've told the Ext to disallow=all and allow=ilbc and yet the endpoint doesn't accept ilbc, that'd possibly give the symptoms you describe.

    What is in the Ext's "allow" list?
     

Share This Page