Unable to find a codec translation path from 0x200 (speex) to 0x40 (slin)

Hello, we use the freepbx distro and run into a problem when trying to use speex.

In the case below i used eyebeam sip client with only the speex codec enabled and dialed the internal echo test application.

if i use g.711 it works just fine.

– Executing [*43@from-internal:2] Wait(“SIP/146-00001ff4”, “1”) in new stack

[2012-02-07 10:11:53] WARNING[21599]: channel.c:5103 set_format: Unable to find a codec translation path from 0x200 (speex) to 0x40 (slin)
[2012-02-07 10:11:53] ERROR[21599]: channel.c:7992 ast_channel_start_silence_generator: Could not set write format to SLINEAR
– Executing [*43@from-internal:3] Playback(“SIP/146-00001ff4”, “demo-echotest”) in new stack
[2012-02-07 10:11:54] WARNING[21599]: channel.c:5103 set_format: Unable to find a codec translation path from 0x200 (speex) to 0xe (gsm|ulaw|alaw)
[2012-02-07 10:11:54] WARNING[21599]: file.c:959 ast_streamfile: Unable to open demo-echotest (format 0x200 (speex)): No such file or directory
[2012-02-07 10:11:54] WARNING[21599]: app_playback.c:475 playback_exec: ast_streamfile failed on SIP/146-00001ff4 for demo-echotest
– Executing [*43@from-internal:4] Echo(“SIP/146-00001ff4”, “”) in new stack

Speex is not included with the default Asterisk. I think it is open source but you need to download and install it.

The command ‘core show translation’ will display all installed CODEC’s.

it says speex followed by dashes -
no translation/transcoding will be done?

However, if i connect two clients booth having only speex the call connects but not if one have g.711 only. i got the same error.

so it seems like the codecs are installed but no transcoding is taking place?

Hints?

pbx*CLI> core show translation
         Translation times between formats (in microseconds) for one second of data
          Source Format (Rows) Destination Format (Columns)

           g723   gsm  ulaw  alaw g726aal2 adpcm  slin lpc10  g729 speex  ilbc  g726  g722 siren7 siren14 slin16  g719 speex16 testlaw
     g723     -     -     -     -        -     -     -     -     -     -     -     -     -      -       -      -     -       -       -
      gsm     -     -  1001  1001     2999  2000  1000  3000     -     -     -  3000  2000      -       -   2001     -       -    1001
     ulaw     -  1001     -     2     2000  1001     1  2001     -     -     -  2001  1001      -       -   1002     -       -       2
     alaw     -  1001     1     -     2000  1001     1  2001     -     -     -  2001  1001      -       -   1002     -       -       2
 g726aal2     -  2000  1001  1001        -  2000  1000  3000     -     -     -  3000  2000      -       -   2001     -       -    1001
    adpcm     -  1001     2     2     2000     -     1  2001     -     -     -  2001  1001      -       -   1002     -       -       2
     slin     -  1000     1     1     1999  1000     -  2000     -     -     -  2000  1000      -       -   1001     -       -       1
    lpc10     -  2000  1001  1001     2999  2000  1000     -     -     -     -  3000  2000      -       -   2001     -       -    1001
     g729     -     -     -     -        -     -     -     -     -     -     -     -     -      -       -      -     -       -       -
    speex     -     -     -     -        -     -     -     -     -     -     -     -     -      -       -      -     -       -       -
     ilbc     -     -     -     -        -     -     -     -     -     -     -     -     -      -       -      -     -       -       -
     g726     -  2000  1001  1001     2999  2000  1000  3000     -     -     -     -  2000      -       -   2001     -       -    1001
     g722     -  2000  1001  1001     2999  2000  1000  3000     -     -     -  3000     -      -       -      1     -       -    1001
   siren7     -     -     -     -        -     -     -     -     -     -     -     -     -      -       -      -     -       -       -
  siren14     -     -     -     -        -     -     -     -     -     -     -     -     -      -       -      -     -       -       -
   slin16     -  2001  1002  1002     3000  2001  1001  3001     -     -     -  3001     1      -       -      -     -       -    1002
     g719     -     -     -     -        -     -     -     -     -     -     -     -     -      -       -      -     -       -       -
  speex16     -     -     -     -        -     -     -     -     -     -     -     -     -      -       -      -     -       -       -
  testlaw     -  1001     2     2     2000  1001     1  2001     -     -     -  2001  1001      -       -   1002     -       -       -
  == Manager 'admin' logged on from 127.0.0.1
  == Manager 'admin' logged off from 127.0.0.1
pbx*CLI> 

First, I updated your post to format it correctly. It’s unreasonable to post unformatted output and expect anyone to study it. On this and any other forum if you take the time to provide and enough information to help and format it in an organized fashion you will get far more help.

Answer, the numbers are the transcoding delays. If no number is presented the CODEC is not installed. Asterisk will pass through any CODEC if it does not need to participate in the media stream. This is a very dicey option.

This blog discusses how to build CODEC’s against Asterisk source.