[asterisk-bugs] [Asterisk 0017267]: [patch] audiohook: translation to slinear 8khz regardless of samplerate

Asterisk Bug Tracker noreply at bugs.digium.com
Fri Apr 30 07:26:10 CDT 2010


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=17267 
====================================================================== 
Reported By:                ssester
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   17267
Category:                   Core/General
Reproducibility:            always
Severity:                   feature
Priority:                   normal
Status:                     new
Asterisk Version:           SVN 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 258676 
Request Review:              
====================================================================== 
Date Submitted:             2010-04-30 07:17 CDT
Last Modified:              2010-04-30 07:26 CDT
====================================================================== 
Summary:                    [patch] audiohook: translation to slinear 8khz
regardless of samplerate
Description: 
If an audiohook is attached to a channel that uses a codec with a
samplerate of 16khz (e.g. G722) the frames are always downgraded to 8khz
16bit signed linear. So if we have 16khz G722 with 320 samples, that will
be downgraded to 160 samples.

The expected behaviour would be to translate the frames to 16khz 16bit
signed linear (SLINEAR16) with 320 samples.
====================================================================== 

---------------------------------------------------------------------- 
 (0121213) ssester (reporter) - 2010-04-30 07:26
 https://issues.asterisk.org/view.php?id=17267#c121213 
---------------------------------------------------------------------- 
The file issue17267_quick_fix_diff.txt contains the changes I made to make
the audiohook pass 16khz 16bit signed linear (AST_FORMAT_SLINEAR16) to the
manipulation_callback.
The hack works fine for me, but as far as I can tell from looking at the
code it only works for TYPE-MANIPULATE audiohooks. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-04-30 07:26 ssester        Note Added: 0121213                          
======================================================================




More information about the asterisk-bugs mailing list