[Home]

Summary:ASTERISK-24542: [patch]Failure showing codecs via 'core show channeltype <tech>'
Reporter:snuffy (snuffy)Labels:
Date Opened:2014-11-20 17:19:27.000-0600Date Closed:2014-12-01 07:08:14.000-0600
Priority:TrivialRegression?No
Status:Closed/CompleteComponents:Core/Channels
Versions:13.0.0 Frequency of
Occurrence
Constant
Related
Issues:
Environment:Debian 7 x64Attachments:( 0) channeltype-tech.diff
Description:Issue with the 'core show channeltypes <tech>'.

Basically command would fail when trying to complete the 'Capabilities:' section.

On the command line.. 'failed to extend from 64 to 98'

Which is due to the ast_str_alloca() being 64, my suggested patch is to move it to 256 which should be more than enough.
Comments:By: Rusty Newton (rnewton) 2014-11-21 08:32:08.938-0600

Thanks [~snuffy] , following the [Patch Contribution Process|https://wiki.asterisk.org/wiki/display/AST/Patch+Contribution+Process] can you throw the patch up on Reviewboard so someone can review and push it in?



By: Matt Jordan (mjordan) 2014-11-21 09:21:19.139-0600

I took a quick peek at it, it should be fine. The statically allocated buffer is too small for a lot of configurations with lots of codecs; expanding the buffer size is an appropriate solution.