[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 Nov 16 07:35:33 CST 2015


Tzafrir Cohen created DAHTOOL-69:
------------------------------------

             Summary: 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