]> git.ipfire.org Git - thirdparty/asterisk.git/commit
chan_dahdi: Fix insufficient array size for round robin.
authorNaveen Albert <asterisk@phreaknet.org>
Wed, 30 Mar 2022 00:22:46 +0000 (00:22 +0000)
committerN A <mail@interlinked.x10host.com>
Wed, 27 Apr 2022 11:02:42 +0000 (06:02 -0500)
commit2c6ae41a97d909056c52d0d5ab38fd516353c634
treea12ace5788c5c97d14355eb9836632a1a6e03bb3
parent942db8c58d432f005121c1646c0d4fa6382654c2
chan_dahdi: Fix insufficient array size for round robin.

According to chan_dahdi.conf, up to 64 groups (numbered
0 through 63) can be used when dialing DAHDI channels.

However, currently dialing round robin with a group number
greater than 31 fails because the array for the round robin
structure is only size 32, instead of 64 as it should be.

This fixes that so the round robin array size is consistent
with the actual groups capacity.

ASTERISK-29994

Change-Id: I4caa08d7025f78ac75a0539f71aaf3eb3e85b3b7
channels/chan_dahdi.c