<p>Joshua Colp <strong>submitted</strong> this change.</p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/18467">View Change</a></p><div style="white-space:pre-wrap">Approvals:
Joshua Colp: Looks good to me, but someone else must approve; Approved for Submit
Benjamin Keith Ford: Looks good to me, approved
</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">chan_dahdi: Fix insufficient array size for round robin.<br><br>According to chan_dahdi.conf, up to 64 groups (numbered<br>0 through 63) can be used when dialing DAHDI channels.<br><br>However, currently dialing round robin with a group number<br>greater than 31 fails because the array for the round robin<br>structure is only size 32, instead of 64 as it should be.<br><br>This fixes that so the round robin array size is consistent<br>with the actual groups capacity.<br><br>ASTERISK-29994<br><br>Change-Id: I4caa08d7025f78ac75a0539f71aaf3eb3e85b3b7<br>---<br>M channels/chan_dahdi.c<br>1 file changed, 1 insertion(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/channels/chan_dahdi.c b/channels/chan_dahdi.c</span><br><span>index e5f0926..c834112 100644</span><br><span>--- a/channels/chan_dahdi.c</span><br><span>+++ b/channels/chan_dahdi.c</span><br><span>@@ -3410,7 +3410,7 @@</span><br><span> };</span><br><span> </span><br><span> /*! Round robin search locations. */</span><br><span style="color: hsl(0, 100%, 40%);">-static struct dahdi_pvt *round_robin[32];</span><br><span style="color: hsl(120, 100%, 40%);">+static struct dahdi_pvt *round_robin[64]; /* groups can range from 0-63 */</span><br><span> </span><br><span> int _dahdi_get_index(struct ast_channel *ast, struct dahdi_pvt *p, int nullok, const char *fname, unsigned long line)</span><br><span> {</span><br><span></span><br></pre><div style="white-space:pre-wrap"></div><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/18467">change 18467</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.asterisk.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.asterisk.org/c/asterisk/+/18467"/><meta itemprop="name" content="View Change"/></div></div>
<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 16 </div>
<div style="display:none"> Gerrit-Change-Id: I4caa08d7025f78ac75a0539f71aaf3eb3e85b3b7 </div>
<div style="display:none"> Gerrit-Change-Number: 18467 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: N A <mail@interlinked.x10host.com> </div>
<div style="display:none"> Gerrit-Reviewer: Benjamin Keith Ford <bford@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Friendly Automation </div>
<div style="display:none"> Gerrit-Reviewer: Joshua Colp <jcolp@sangoma.com> </div>
<div style="display:none"> Gerrit-MessageType: merged </div>