mirror of https://github.com/asterisk/asterisk
Currently, if any custom ring cadences are specified, they are appended to the array of cadences from wherever we left off last time. This works properly the first time, but on subsequent dahdi restarts, it means that the existing cadences are left alone and (most likely) the same cadences are then re-added afterwards. In short order, the cadence array gets maxed out and the user begins seeing warnings that the array is full and no more cadences may be added. This buggy behavior persists until Asterisk is completely restarted; however, if and when dahdi restart is run again, then the same problem is reintroduced. This fixes this behavior so that cadence parsing is more idempotent, that is so running dahdi restart multiple times starts adding cadences from the beginning, rather than from wherever the last cadence was added. As before, it is still not possible to revert to the default cadences by simply removing all cadences in this manner, nor is it possible to delete existing cadences. However, this does make it possible to update existing cadences, which was not possible before, and also ensures that the cadences remain unchanged if the config remains unchanged. ASTERISK-29990 #close Change-Id: Ie32ea3e8a243b766756b1afce684d4a31ee7421d18.12
parent
9dc321cbcb
commit
cb53ad5671
@ -0,0 +1,8 @@
|
||||
Subject: chan_dahdi
|
||||
|
||||
Previously, cadences were appended on dahdi restart,
|
||||
rather than reloaded. This prevented cadences from
|
||||
being updated and maxed out the available cadences
|
||||
if reloaded multiple times. This behavior is fixed
|
||||
so that reloading cadences is idempotent and cadences
|
||||
can actually be reloaded.
|
Loading…
Reference in new issue