Unable to play sound files

Hi All,

I am using asterisk 1.8.3 on Ubuntu 11.04.

getting the following error

test-mache*CLI> 
[Apr 23 22:34:10] WARNING[4060]: channel.c:4975 set_format: Unable to find a codec translation path from 0x200240000 (speex16|h261|h264) to 0x4 (ulaw)
[Apr 23 22:34:10] WARNING[4060]: channel.c:4975 set_format: Unable to find a codec translation path from 0x200240000 (speex16|h261|h264) to 0x4 (ulaw)
[Apr 23 22:34:10] WARNING[4060]: file.c:644 ast_openstream_full: File welcome does not exist in any format
[Apr 23 22:34:10] WARNING[4060]: file.c:950 ast_streamfile: Unable to open welcome (format 0x200240000 (speex16|h261|h264)): No such file or directory
[Apr 23 22:34:10] WARNING[4060]: app_playback.c:471 playback_exec: ast_streamfile failed on SIP/ivan-0000000c for welcome
[Apr 23 22:34:10] WARNING[4060]: channel.c:4975 set_format: Unable to find a codec translation path from 0x200240000 (speex16|h261|h264) to 0x2 (gsm)
[Apr 23 22:34:10] WARNING[4060]: file.c:950 ast_streamfile: Unable to open digits/day-3 (format 0x200240000 (speex16|h261|h264)): No such file or directory
[Apr 23 22:34:10] WARNING[4060]: say.c:426 wait_file: Unable to play message digits/day-3
test-mache*CLI> 

/etc/asterisk/extensions.conf

[test] exten => 567,1,Answer() exten => 567,2,Playback(welcome) exten => 567,3,SayUnixTime(-1,UTC) exten => 567,4,SayDigits(123) exten => 567,5,Playback(vm-goodbye) exten => 567,6,Hangup()

I have selected the following during the installation :

$ sudo make menuselect
core sound packages

[ ] CORE-SOUNDS-EN-WAV
[ ] CORE-SOUNDS-EN-ULAW
[ ] CORE-SOUNDS-EN-ALAW
[*] CORE-SOUNDS-EN-GSM
[ ] CORE-SOUNDS-EN-G729
[ ] CORE-SOUNDS-EN-G722
[ ] CORE-SOUNDS-EN-SLN16
[ ] CORE-SOUNDS-EN-SIREN7
[ ] CORE-SOUNDS-EN-SIREN14
[ ] CORE-SOUNDS-ES-WAV
[ ] CORE-SOUNDS-ES-ULAW
[ ] CORE-SOUNDS-ES-ALA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to use Speex or is configured that way. Your Asterisk build doesn’t know how to translate Speex.

Thanks malcolmd for your reply .

[quote]Your device wants to use Speex or is configured that way. Your Asterisk build doesn’t know how to translate Speex.
[/quote]

I have installed speex , restart the asterisk , but getting the same error

Do we have to reinstall the asterisk again ? Please advise.

Yes, if you didn’t have the Speex libraries already installed, Asterisk did not build codec_speex when it was installed. You’ll need to re-run the ./configure script for Asterisk, let it find the Speex libraries, make sure to select codec_speex from Asterisk’ make menuconfig, and then re-install Asterisk.

Thanks malcolmd for your reply .

Asterisk is still unable to find speex libraries even after installing speex libraries

$ dpkg -l | grep speex ii libspeex1 1.2~rc1-1ubuntu1 The Speex codec runtime library ii libspeexdsp1 1.2~rc1-1ubuntu1 The Speex extended runtime library ii speex 1.2~rc1-1ubuntu1 The Speex codec command line tools

[code]$ sudo ./configure

$ sudo make menuconfig

[] codec_adpcm
[
] codec_alaw
[] codec_a_mu
XXX codec_dahdi
[
] codec_g722
[] codec_g726
[
] codec_gsm
[ ] codec_ilbc
[] codec_lpc10
XXX codec_resample
XXX codec_speex
[
] codec_ulaw
[/code]

Is there a -dev package for the speex libraries that your Linux distribution makes available?

Thanks malcolmd for your reply .

Now It works

I have installed more then one libspeex dev file (I dont know which one is the suitable one) , reconfigure asterisk , menuconfig , re-install asterisk .

Again Thanks lot malcolmd

Yay :smile: