dahdi_cfg: Make -S option based on spannumber instead of order in config file.
authorShaun Ruffell <sruffell@digium.com>
Thu, 9 May 2013 19:03:46 +0000 (14:03 -0500)
committerRuss Meyerriecks <rmeyerriecks@digium.com>
Tue, 28 May 2013 17:34:03 +0000 (12:34 -0500)
commit2889d6afee7d254990b2e5a52a7ef538f6a0d6fe
tree34eb8d84c2a1aeaf5dced2b0d02b20cea0a1ae52
parent7939579d9e901d85749eadbdd40bc1c79ecd6478
dahdi_cfg: Make -S option based on spannumber instead of order in config file.

If the config file has two spans defined:

  span=1,1,0,esf,b8zs
  bchan=1-23
  dchan=24
  echocanceller=mg2,1-23
  span=2,2,0,esf,b8zs
  bchan=25-47
  dchan=48

And you only want to configure span-2, you would need to pass -S 1 to
dahdi_cfg. Now make the -S option take the span number as assigned in the
config file.

Signed-off-by: Shaun Ruffell <sruffell@digium.com>
Signed-off-by: Russ Meyerriecks <rmeyerriecks@digium.com>
dahdi_cfg.c