[asterisk-bugs] [Asterisk 0016610]: [OpenSolaris] wav format produces garbage files

Asterisk Bug Tracker noreply at bugs.digium.com
Thu Jan 28 06:12:39 CST 2010


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=16610 
====================================================================== 
Reported By:                bklang
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   16610
Category:                   Formats/format_wav
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     acknowledged
Asterisk Version:           SVN 
JIRA:                       SWP-728 
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!): 240280 
Request Review:              
====================================================================== 
Date Submitted:             2010-01-14 20:34 CST
Last Modified:              2010-01-28 06:12 CST
====================================================================== 
Summary:                    [OpenSolaris] wav format produces garbage files
Description: 
I was toying with changing the recording format for voicemail files on my
server.  The GSM format had been working fine to both record and playback
files.  However switching voicemail.conf to create wav files results in
garbage data.  The files do not play back at all on several platforms,
including the server that recorded it.

I also attempted to record wav audio using the Record() dialplan
application.  The same garbage files resulted.  Here is what the console
says when trying to playback one of the files:

[Jan 14 21:27:53] WARNING[14811]: app_playback.c:471 playback_exec:
ast_streamfile failed on SIP/F27564A6-8B0D-408E-00000028 for
/tmp/1263522240.57
[Jan 14 21:27:53] WARNING[14811]: format_wav.c:95 check_header: Does not
begin with RIFF
[Jan 14 21:27:53] WARNING[14811]: file.c:370 fn_wrapper: Unable to open
format wav

The size of the file produced varies approximately according to duration,
so some data is getting in there.

This does not seem to impact other formats.  Playback of known-good wav
files works fine so it only seems to be a problem writing the wav format.

====================================================================== 

---------------------------------------------------------------------- 
 (0117296) michaesc (reporter) - 2010-01-28 06:12
 https://issues.asterisk.org/view.php?id=16610#c117296 
---------------------------------------------------------------------- 
To be exact, this problem appears in Solaris 11 x86 (nv-b91) as well, not
only OpenSolaris. It could very well be a problem that exists on all SVR5
Unix OSs, or maybe it is due to a nonstandard (non Posix/ISO C) programming
construct. That last sentence is a speculation, not a observation.

It would be nice to be able to construct PCM wav files with the proper
headers again as it was possible in Asterisk 1.4. It's not enough of
course, to be able to take a recorded file to another computer which can
play back wav files with defective headers. This would mean that people can
leave messages for you, and you can never hear your voicemail messages = a
very absurd concept. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-01-28 06:12 michaesc       Note Added: 0117296                          
======================================================================




More information about the asterisk-bugs mailing list