translate: Provide translation modules the result of SDP negotiation.

Previously, a trancoding module did not have access to the joint but cached
format. Therefore, the module did not have access to the attributes negotiated
via SDP (line fmtp). Now, a translation module receives the joint format.

ASTERISK-25545 #close

Change-Id: Id6878a989b50573298dab115d3371ea369e1a718
This commit is contained in:
Alexander Traud
2015-11-11 18:51:17 +01:00
parent dac0bf063c
commit 0b508789ab
2 changed files with 34 additions and 5 deletions

View File

@@ -223,6 +223,14 @@ struct ast_trans_pvt {
struct ast_trans_pvt *next; /*!< next in translator chain */
struct timeval nextin;
struct timeval nextout;
/*! If a translation path using a format with attributes requires the output
* to be a specific set of attributes, this variable will be set describing
* those attributes to the translator. Otherwise, the translator must choose
* a set of format attributes for the destination that preserves the quality
* of the audio in the best way possible. For example with the Opus Codec,
* explicit_dst contains an attribute which describes whether both parties
* want to do forward-error correction (FEC). */
struct ast_format *explicit_dst;
};
/*! \brief generic frameout function */