[asterisk-bugs] [JIRA] (ASTERISK-25545) [patch] translation module gets cached not joint format
Alexander Traud (JIRA)
noreply at issues.asterisk.org
Wed Nov 11 06:37:33 CST 2015
[ https://issues.asterisk.org/jira/browse/ASTERISK-25545?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alexander Traud updated ASTERISK-25545:
---------------------------------------
Comment: was deleted
(was: Thanks for creating a report! The issue has entered the triage process. That means the issue will wait in this status until a Bug Marshal has an opportunity to review the issue. Once the issue has been reviewed you will receive comments regarding the next steps towards resolution.
A good first step is for you to review the [Asterisk Issue Guidelines|https://wiki.asterisk.org/wiki/display/AST/Asterisk+Issue+Guidelines] if you haven't already. The guidelines detail what is expected from an Asterisk issue report.
Then, if you are submitting a patch, please review the [Patch Contribution Process|https://wiki.asterisk.org/wiki/display/AST/Patch+Contribution+Process].)
> [patch] translation module gets cached not joint format
> -------------------------------------------------------
>
> Key: ASTERISK-25545
> URL: https://issues.asterisk.org/jira/browse/ASTERISK-25545
> Project: Asterisk
> Issue Type: Bug
> Security Level: None
> Components: Formats/General
> Affects Versions: 13.6.0
> Reporter: Alexander Traud
> Severity: Minor
>
> A translation module {{codecs/codec_\*}} has access to a format via
> * {{pvt->f.subclass.format}} in {{linto*_new(.)}},
> * {{pvt->f.subclass.format}} in {{linto*_frameout(.)}}, and
> * {{f->subclass.format}} in {{\*tolin_framein(.)}}.
> One would expect this is the joint format, which was negotiated via SDP and created by {{ast_format_joint(.)}}. However currently, this is not the joint but the cached format. The cached format is shared between all connections (even all channels) and does not include the result of the SDP negotiation.
> Consequently, if a format includes a translation module {{codecs/codec_\*}} and a format-attribute module {{res/res_format_attr_\*}}, both modules are disconnected currently. The translation module is not able to follow the negotiated (joint) format of the format-attribute module.
> This blocks the following formats to work with Asterisk:
> * [G.729 Annex B|http://tools.ietf.org/html/rfc4856.html#section-2.1.9]: therefore limited to G.729 Annex A,
> * [iLBC 20|https://tools.ietf.org/html/rfc3952#section-5]: therefore limited to iLBC 30,
> * [SILK Codec|https://github.com/gaozehua/SILKCodec/blob/master/SILK_SDK_SRC_FIX/doc/SILK_RTP_PayloadFormat.pdf]: attribute {{maxaveragebitrate}},
> * [Opus Codec|https://tools.ietf.org/html/rfc7587#section-7.1]: several attributes, including {{maxaveragebitrate}},
> * [AMR and AMR-WB|https://tools.ietf.org/html/rfc4867#section-8.3]: several attributes, including {{octet-align}}.
> Attached is a patch – technically, one single line of code – which fixes this. With that patch, a translation module receives the joint format created by its format-attribute module. This feature got lost with the format changes between Asterisk 12 to Asterisk 13. Therefore, Asterisk 11 is not affected by this. Although none of the mentioned formats are supported as translation module within Asterisk 13, please, consider this change for inclusion.
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list