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

noreply at bugs.digium.com noreply at bugs.digium.com
Fri Feb 29 11:57:14 CST 2008


The following issue has been UPDATED. 
====================================================================== 
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:                     ready for testing
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:              02-29-2008 11:57 CST
====================================================================== 
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               
====================================================================== 
02-29-08 11:57  file           Category                 Core/CodecInterface =>
Core/NewFeature
======================================================================




More information about the asterisk-bugs mailing list