Summary:ASTERISK-13220: [patch] Regression When Playing WAV49 Audio Files
Reporter:Michael L. Young (elguero)Labels:
Date Opened:2008-12-15 10:58:05.000-0600Date Closed:2008-12-15 11:24:24.000-0600
Versions:Frequency of
Environment:Attachments:( 0) wav49regression.patch
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 #158062 that was fixing issue ASTERISK-12260.

This is affecting voicemail messages that are recorded as WAV49.
Comments:By: Digium Subversion (svnbot) 2008-12-15 11:24:24.000-0600

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 ASTERISK-13220)
Reported by: elguero