[asterisk-bugs] [JIRA] (ASTERISK-24732) [patch]CLI "core show channel" gets "failed to extend from %d to %d" message for large native formats list.

Richard Mudgett (JIRA) noreply at issues.asterisk.org
Tue Nov 10 11:44:32 CST 2015


     [ https://issues.asterisk.org/jira/browse/ASTERISK-24732?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Richard Mudgett closed ASTERISK-24732.
--------------------------------------

    Resolution: Duplicate

> [patch]CLI "core show channel" gets "failed to extend from %d to %d" message for large native formats list.
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: ASTERISK-24732
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-24732
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Core/General
>    Affects Versions: 13.1.0
>            Reporter: Richard Mudgett
>         Attachments: jira_asterisk_24732_example_v13.patch
>
>
> Occasionally I get "failed to extend from %d to %d" messages output.  In this case I performed a CLI "core show channel CBRec/xxx" and got the message for the native formats on the channel.
> The culprit is the ast_str variable is declared too small to list all formats.  An audit is need for the uses of ast_str_alloca() when used to hold the format capabilities string.  Currently ast_str_alloca(64) is used throughout the code base for this particular case.  The 64 needs to be replaced with a define to eliminate the magic number and the number needs to be increased to 256 when all codecs are allowed.



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list