Errors during Playback

Hello,

I receive the following error when I try to playback a recorded file:

Executing [333@Iax:1] Playback(“IAX2/2001-9379”, “/var/spool/asterisk/monitor/test.wav”) in new stack
[Feb 18 11:32:37] WARNING[1759][C-00000001]: file.c:772 ast_openstream_full: File /var/spool/asterisk/monitor/test.wav does not exist in any format
[Feb 18 11:32:37] WARNING[1759][C-00000001]: file.c:1245 ast_streamfile: Unable to open /var/spool/asterisk/monitor/test.wav (format (ulaw)): No such file or directory
[Feb 18 11:32:37] WARNING[1759][C-00000001]: app_playback.c:492 playback_exec: Playback failed on IAX2/2001-9379 for /var/spool/asterisk/monitor/test.wav
– Auto fallthrough, channel ‘IAX2/2001-9379’ status is ‘UNKNOWN’
– Hungup ‘IAX2/2001-9379’

This is the configuration:

exten => 100,1,Answer()
same => n,MixMonitor(/var/spool/asterisk/monitor/test.wav)
same => n,Dial(IAX2/2000)
same => n,Hangup()

exten => 333,1,playback(/var/spool/asterisk/monitor/test.wav)

You don’t specify the “.wav” extension in the Playback line. Asterisk will automatically search and find a sound file it can use.

1 Like

As jcolp says, you need to just write the base name of the file, the file Asterisk is REALLY looking for in your case, is /var/spool/asterisk/monitor/test.wav.ulaw

If it does not find a file in the format of the codec used on the channel, it will look for a file that can be transcoded, eg. your wav file, which will be transcoded on the fly, to ulaw which the channel requires.

I delete .wav, it’s working. But when i try to playback a word I have the following error:

exten =>111,1,Answer()
same => n,Playback(welcome)

[Feb 19 10:24:03] WARNING[1773][C-00000001]: file.c:772 ast_openstream_full: File welcome does not exist in any format
[Feb 19 10:24:03] WARNING[1773][C-00000001]: file.c:1245 ast_streamfile: Unable to open welcome (format (ulaw)): No such file or directory
[Feb 19 10:24:03] WARNING[1773][C-00000001]: app_playback.c:492 playback_exec: Playback failed on IAX2/2001-16001 for welcome

Does this file welcome exist under default sound directory path (Normally it is /var/lib/asterisk/sounds if not changed in asterisk.conf)?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.