[asterisk-bugs] [JIRA] (ASTERISK-29994) chan_dahdi: Round robin array size is too small for max number of groups

Joshua C. Colp (JIRA) noreply at issues.asterisk.org
Wed Mar 30 04:24:07 CDT 2022


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

Work on ASTERISK-29994 started by N A.

> chan_dahdi: Round robin array size is too small for max number of groups
> ------------------------------------------------------------------------
>
>                 Key: ASTERISK-29994
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-29994
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Channels/chan_dahdi
>    Affects Versions: 18.11.0
>            Reporter: N A
>            Assignee: N A
>
> In chan_dahdi.conf, we have:
> {noformat}
> ; Logical groups can be assigned to allow outgoing roll-over.  Groups range
> ; from 0 to 63, and multiple groups can be specified. By default the
> ; channel is not a member of any group.
> {noformat}
> However, there is a typo in chan_dahdi.c:
> {noformat}
> /*! Round robin search locations. */
> static struct dahdi_pvt *round_robin[32];
> {noformat}
> This actually needs to be 64, or otherwise only  groups 0-31 work correctly with round robin, and 32+ don't work with round robin but work with "G" for instance.
> This fixes this issue so that they are both consistent with allowing 64 groups (0-63).



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



More information about the asterisk-bugs mailing list