[asterisk-bugs] [JIRA] (DAHTOOL-69) dahdi_cfg: -S: fails if system.conf is not as assumed

Tzafrir Cohen (JIRA) noreply at issues.asterisk.org
Mon Feb 22 09:51:56 CST 2016


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

Tzafrir Cohen closed DAHTOOL-69.
--------------------------------

    Resolution: Fixed

Fixed in commit cffc5158cc4ca9edba83387af97f6d28d74d6a0d (included in 2.11.0).

However it means that -S (only on span N) now requires -C (only on channels range M-N).

> dahdi_cfg: -S: fails if system.conf is not as assumed
> -----------------------------------------------------
>
>                 Key: DAHTOOL-69
>                 URL: https://issues.asterisk.org/jira/browse/DAHTOOL-69
>             Project: DAHDI-Tools
>          Issue Type: Bug
>      Security Level: None
>          Components: Utilities
>    Affects Versions: 2.6.0, 2.10.0
>            Reporter: Tzafrir Cohen
>            Assignee: Russ Meyerriecks
>            Severity: Minor
>
> DAHDI-tools 2.6.0 added the options -S and -C to run dahdi_cfg only on specific spans. The problem is that there is no direct mapping of spans to channels in system.conf.
> The patch added its own mapping. However the code added relies on the assumption that the channel of each span is mentioned the first time immediately after the span= line for that span. This holds for e.g. the output of dahdi_genconf.
> span=1,...
> bchan=1-2
> dchan=3
> span=2,...
> bchan=4-5
> dchan=6
> However, this breaks if we have a configuration file such as:
> span=1,...
> span=2,...
> bchan=1-2,4-5
> dchan=3,6
> In which case, running:  'dahdi_cfg -S 1 -C 1-2' gets errors such as:
> Only span 1. Skip selected channel 1 from span 2
> And running: 'dahdi_cfg -S 1' will silently do nothing.



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



More information about the asterisk-bugs mailing list