<p> Attention is currently required from: N A. </p>
<p>N A <strong>uploaded patch set #3</strong> to this change.</p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/18301">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">chan_dahdi: Don't append cadences on dahdi restart.<br><br>Currently, if any custom ring cadences are specified, they are<br>appended to the array of cadences from wherever we left off<br>last time. This works properly the first time, but on subsequent<br>dahdi restarts, it means that the existing cadences are left<br>alone and (most likely) the same cadences are then re-added<br>afterwards. In short order, the cadence array gets maxed out<br>and the user begins seeing warnings that the array is full<br>and no more cadences may be added.<br><br>This buggy behavior persists until Asterisk is completely<br>restarted; however, if and when dahdi restart is run again,<br>then the same problem is reintroduced.<br><br>This fixes this behavior so that cadence parsing is more<br>idempotent, that is so running dahdi restart multiple times<br>starts adding cadences from the beginning, rather than from<br>wherever the last cadence was added.<br><br>As before, it is still not possible to revert to the default<br>cadences by simply removing all cadences in this manner, nor<br>is it possible to delete existing cadences. However, this<br>does make it possible to update existing cadences, which<br>was not possible before, and also ensures that the cadences<br>remain unchanged if the config remains unchanged.<br><br>ASTERISK-29990 #close<br><br>Change-Id: Ie32ea3e8a243b766756b1afce684d4a31ee7421d<br>---<br>M channels/chan_dahdi.c<br>M configs/samples/chan_dahdi.conf.sample<br>A doc/CHANGES-staging/chan_dahdi_cadences.txt<br>3 files changed, 14 insertions(+), 2 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/01/18301/3</pre><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/18301">change 18301</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/+/18301"/><meta itemprop="name" content="View Change"/></div></div>
<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: Ie32ea3e8a243b766756b1afce684d4a31ee7421d </div>
<div style="display:none"> Gerrit-Change-Number: 18301 </div>
<div style="display:none"> Gerrit-PatchSet: 3 </div>
<div style="display:none"> Gerrit-Owner: N A <mail@interlinked.x10host.com> </div>
<div style="display:none"> Gerrit-Reviewer: Friendly Automation </div>
<div style="display:none"> Gerrit-Reviewer: George Joseph <gjoseph@digium.com> </div>
<div style="display:none"> Gerrit-Attention: N A <mail@interlinked.x10host.com> </div>
<div style="display:none"> Gerrit-MessageType: newpatchset </div>