[asterisk-users] Weird problem with beep.wav!

James Dyer jad at midentity.com
Mon Oct 16 05:01:02 MST 2006


This is really doing my head in!

For some reason, my asterisk box can't playback beep.wav.

I have this extension defined in my internal context:

'10001' =>        1. Answer()                                   [pbx_config]
                    2. Wait(2)                                  [pbx_config]
                    3. Record(/tmp/asterisk/10001:gsm)          [pbx_config]
                    4. Wait(2)                                  [pbx_config]
                    5. Playback(/tmp/asterisk/10001)            [pbx_config]
                    6. Wait(2)                                  [pbx_config]
                    7. Hangup()                                 [pbx_config]


When I call ext 10001 from a phone, I get the following:

    -- Executing Answer("IAX2/308-4", "") in new stack
    -- Executing Wait("IAX2/308-4", "2") in new stack
    -- Executing Record("IAX2/308-4", "/tmp/asterisk/10001:gsm") in new 
stack
Oct 16 12:49:41 WARNING[8581]: format_wav.c:153 check_header: Not a wav 
file 49
Oct 16 12:49:41 WARNING[8581]: file.c:436 ast_filehelper: Unable to open 
file on /var/lib/asterisk/sounds/beep.wav
Oct 16 12:49:41 WARNING[8581]: file.c:824 ast_streamfile: Unable to open 
beep (format ulaw): No such file or directory
Oct 16 12:49:41 WARNING[8581]: app_record.c:247 record_exec: 
ast_streamfile failed on IAX2/308-4


I'm getting the same issue with voicemail when that application tries to 
play the beep.

Don't think it'a actually a problem with the playing back of WAV files as 
such, since ext. 666:
  '666' =>          1. Answer()                                   [pbx_config]
                    2. Background(carried-away-by-monkeys)        [pbx_config]
                    3. Hangup()                                   [pbx_config]

works fine. 

Permissionsn on the file (-rw-r--r--) are fine.

I've tried copying beep.wav to my windows box, where it played fine, so it 
is presumably not corrupted or anything.

Anyone got any ideas??


james




More information about the asterisk-users mailing list