[asterisk-bugs] [Asterisk 0014079]: [patch] Regression When Playing WAV49 Audio Files

Asterisk Bug Tracker noreply at bugs.digium.com
Mon Dec 15 11:24:24 CST 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=14079 
====================================================================== 
Reported By:                elguero
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   14079
Category:                   Core/General
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     new
Asterisk Version:           SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 164272 
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             2008-12-15 10:58 CST
Last Modified:              2008-12-15 11:24 CST
====================================================================== 
Summary:                    [patch] Regression When Playing WAV49 Audio Files
Description: 
WAV49 files have an offset of 60.  When testing if there is any data in an
audio file, the file position is being set to 0.

This is a quick fix.  I am not sure if this is the best way to handle this
but it works.

I traced this regression back to commit
http://bugs.digium.com/view.php?id=158062 that was fixing issue
http://bugs.digium.com/view.php?id=12929.

This is affecting voicemail messages that are recorded as WAV49.
====================================================================== 

---------------------------------------------------------------------- 
 (0096402) svnbot (reporter) - 2008-12-15 11:24
 http://bugs.digium.com/view.php?id=14079#c96402 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 164312

U   trunk/main/file.c

------------------------------------------------------------------------
r164312 | file | 2008-12-15 11:24:23 -0600 (Mon, 15 Dec 2008) | 4 lines

Use ast_seekstream to return the file stream back to the beginning instead
of directly seeking to zero. This is because some audio formats have
headers at the front that need to be skipped, which will be done by the
format module.
(closes issue http://bugs.digium.com/view.php?id=14079)
Reported by: elguero

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=164312 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2008-12-15 11:24 svnbot         Checkin                                      
2008-12-15 11:24 svnbot         Note Added: 0096402                          
======================================================================




More information about the asterisk-bugs mailing list