[asterisk-bugs] [JIRA] (ASTERISK-29990) chan_dahdi: adding ring cadences is not idempotent on dahdi restart

Asterisk Team (JIRA) noreply at issues.asterisk.org
Thu May 5 09:40:42 CDT 2022


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

Asterisk Team updated ASTERISK-29990:
-------------------------------------

    Target Release Version/s: 16.26.0

> chan_dahdi: adding ring cadences is not idempotent on dahdi restart
> -------------------------------------------------------------------
>
>                 Key: ASTERISK-29990
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-29990
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Channels/chan_dahdi
>    Affects Versions: 18.6.0
>         Environment: Debian
>            Reporter: N A
>            Assignee: N A
>      Target Release: 16.26.0
>
>
> Every time you run "dahdi restart", ring cadences are *added*, not *re-added* or updated.
> This means running dahdi is not idempotent. If you have ring cadences configured, eventually you will start getting warnings that you've filled up all the ring cadences.
> e.g.:
> {noformat}
> [Mar 27 05:36:48]     -- cadence 'r15' added: 2000,-4000
> [Mar 27 05:36:48]     -- cadence 'r16' added: 300,200,1000,200,300,-4000
> [Mar 27 05:36:48]     -- cadence 'r17' added: 800,400,800,-4000
> [Mar 27 05:36:48]     -- cadence 'r18' added: 400,200,300,200,800,-4000
> [Mar 27 05:36:48]     -- cadence 'r19' added: 400,200,800,200,800,-3600
> [Mar 27 05:36:48]     -- cadence 'r20' added: 200,400,200,400,200,-4000
> [Mar 27 05:36:48]     -- cadence 'r21' added: 800,200,400,200,800,-3600
> [Mar 27 05:36:48]     -- cadence 'r22' added: 1650,-350
> [Mar 27 05:36:48]     -- cadence 'r23' added: 800,200,300,200,400,-4000
> [Mar 27 05:36:48]     -- cadence 'r24' added: 400,200,400,-2000
> [Mar 27 05:36:48] ERROR[1319]: chan_dahdi.c:19181 process_dahdi: Already 25 cadences; can't add another: 125,125,2000,-4000 at line 14.
> [Mar 27 05:36:48] ERROR[1319]: chan_dahdi.c:19181 process_dahdi: Already 25 cadences; can't add another: 250,250,500,1000,250,250,500,-4000 at line 15.
> [Mar 27 05:36:48] ERROR[1319]: chan_dahdi.c:19181 process_dahdi: Already 25 cadences; can't add another: 125,125,125,125,125,-4000 at line 16.
> [Mar 27 05:36:48] ERROR[1319]: chan_dahdi.c:19181 process_dahdi: Already 25 cadences; can't add another: 1000,500,2500,-5000 at line 17.
> {noformat}
> And then the next time around:
> {noformat}
> [Mar 27 05:46:52] DEBUG[1319]: config.c:2207 config_text_file_load: Parsing /etc/asterisk/chan_dahdi.conf
> [Mar 27 05:46:52] ERROR[1319]: chan_dahdi.c:19181 process_dahdi: Already 25 cadences; can't add another: 2000,-4000 at line 3.
> [Mar 27 05:46:52] ERROR[1319]: chan_dahdi.c:19181 process_dahdi: Already 25 cadences; can't add another: 300,200,1000,200,300,-4000 at line 4.
> [Mar 27 05:46:52] ERROR[1319]: chan_dahdi.c:19181 process_dahdi: Already 25 cadences; can't add another: 800,400,800,-4000 at line 5.
> [Mar 27 05:46:52] ERROR[1319]: chan_dahdi.c:19181 process_dahdi: Already 25 cadences; can't add another: 400,200,300,200,800,-4000 at line 6.
> [Mar 27 05:46:52] ERROR[1319]: chan_dahdi.c:19181 process_dahdi: Already 25 cadences; can't add another: 400,200,800,200,800,-3600 at line 7.
> [Mar 27 05:46:52] ERROR[1319]: chan_dahdi.c:19181 process_dahdi: Already 25 cadences; can't add another: 200,400,200,400,200,-4000 at line 8.
> [Mar 27 05:46:52] ERROR[1319]: chan_dahdi.c:19181 process_dahdi: Already 25 cadences; can't add another: 800,200,400,200,800,-3600 at line 9.
> [Mar 27 05:46:52] ERROR[1319]: chan_dahdi.c:19181 process_dahdi: Already 25 cadences; can't add another: 1650,-350 at line 10.
> [Mar 27 05:46:52] ERROR[1319]: chan_dahdi.c:19181 process_dahdi: Already 25 cadences; can't add another: 800,200,300,200,400,-4000 at line 11.
> [Mar 27 05:46:52] ERROR[1319]: chan_dahdi.c:19181 process_dahdi: Already 25 cadences; can't add another: 400,200,400,-2000 at line 12.
> [Mar 27 05:46:52] ERROR[1319]: chan_dahdi.c:19181 process_dahdi: Already 25 cadences; can't add another: 125,125,2000,-4000 at line 14.
> [Mar 27 05:46:52] ERROR[1319]: chan_dahdi.c:19181 process_dahdi: Already 25 cadences; can't add another: 250,250,500,1000,250,250,500,-4000 at line 15.
> [Mar 27 05:46:52] ERROR[1319]: chan_dahdi.c:19181 process_dahdi: Already 25 cadences; can't add another: 125,125,125,125,125,-4000 at line 16.
> [Mar 27 05:46:52] ERROR[1319]: chan_dahdi.c:19181 process_dahdi: Already 25 cadences; can't add another: 1000,500,2500,-5000 at line 17.
> {noformat}
> (As an aside, the max number of cadences is supposedly 25, but it appears to stop at 24 here.)
> The only fix is to completely restart Asterisk (core restart now). However, the next time dahdi restart is run, the same thing happens all over again. Effectively, you can't run dahdi restart or ring cadences get screwed up. Restarting Asterisk is the only clean way to not fudge up the DAHDI config.



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



More information about the asterisk-bugs mailing list