[asterisk-bugs] [Asterisk 0018273]: [patch] Voicemail problems when using only ogg.

Asterisk Bug Tracker noreply at bugs.digium.com
Mon Nov 8 04:26:40 CST 2010


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=18273 
====================================================================== 
Reported By:                sque
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   18273
Category:                   Formats/format_ogg_vorbis
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
Asterisk Version:           1.8.0 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2010-11-08 03:59 CST
Last Modified:              2010-11-08 04:26 CST
====================================================================== 
Summary:                    [patch] Voicemail problems when using only ogg.
Description: 
If I use only ogg as output format in voicemail, playback is stopped after
less than a second. It is 100% reproducable other using ODBC or storage for
messages, and using conf or ODBC for mailboxes. Trying to track the problem
down I implemented the missing seek() function of the ogg_vorbis module and
this problem stopped, everything worked perfectly again. I don't know if
there is another bug in the core that if seek() returns -1 it gets crazy.

Also in the meta file of messages (msg000x.txt) the duration is always 0
for ogg files because the tell() function is not implemented. Implementing
it duration works tha same as any other format.

I will provide soon the patch that fixes them.
====================================================================== 

---------------------------------------------------------------------- 
 (0128685) sque (reporter) - 2010-11-08 04:26
 https://issues.asterisk.org/view.php?id=18273#c128685 
---------------------------------------------------------------------- 
In the attachment you will find, a patch for format_ogg_vorbis.c that drops
the previous implementation and uses libvorbisenc for decoding
(http://www.xiph.org/vorbis/doc/vorbisenc/overview.html#BBR). I did this
because there was no meaning messing with low-level api and duplicating
work that already exist with more features. As a result the seek() and
tell() functions are now fully implemented in read mode.

In writing mode, it is impossible for me to create seeking for VBR
formats. I just added a statistics value, for tracking written uncompressed
pcm samples, so that tell() can report in writing mode and eventually work
the duration in voicemail. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-11-08 04:26 sque           Note Added: 0128685                          
======================================================================




More information about the asterisk-bugs mailing list