[asterisk-bugs] [Asterisk 0006725]: [patch] incapsulation of ast_best_codec(chan->nativeformats)

noreply at bugs.digium.com noreply at bugs.digium.com
Fri Mar 14 12:15:50 CDT 2008


The following issue requires your FEEDBACK. 
====================================================================== 
http://bugs.digium.com/view.php?id=6725 
====================================================================== 
Reported By:                Mithraen
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   6725
Category:                   Core/NewFeature
Reproducibility:            always
Severity:                   tweak
Priority:                   normal
Status:                     feedback
Asterisk Version:           SVN 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!): 50469 
Disclaimer on File?:        Yes 
Request Review:             Yes 
====================================================================== 
Date Submitted:             03-15-2006 03:07 CST
Last Modified:              03-14-2008 12:15 CDT
====================================================================== 
Summary:                    [patch] incapsulation of
ast_best_codec(chan->nativeformats)
Description: 
This patch is a part of my work for incapsulate must work with codecs.
That
needed for future changes with codec negotiation logic.

Added functions (all this functions static inline):
 
 - ast_chan_best_codec(chan) = ast_best_codec(chan->nativecodecs)
   This need, because in future nativecodecs can be changed from int to
struct
   type;
 - ast_get_read_format(chan) = chan->readformat
 - ast_get_write_format(chan) = chan->writeformat
 - ast_request_inherit -- wrapper around ast_request, that can:
    - copy type from parent channel, if type not set;
    - copy formats from parent channel;
 - ast_chan_getformatname  = ast_getformatname(chan->nativeformats)
 - ast_channel_format_reset =
        ast_set_read_format(chan->readformat);
        ast_set_write_format(chan->writeformat);

First patch adds new functions.
Second patch, switch most of Asterisk code to use new functions.
======================================================================
Relationships       ID      Summary
----------------------------------------------------------------------
related to          0006727 [patch] ast_get_readformat(chan) added
related to          0004825 [patch][post 1.4] New codec negotiation...
====================================================================== 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
03-14-08 12:15  Corydon76      Status                   ready for testing =>
feedback
======================================================================




More information about the asterisk-bugs mailing list