dahdi_cfg: add '-S <spanno>' and '-C <chan-ranges>'
authorOron Peled <oron.peled@xorcom.com>
Wed, 2 Nov 2011 20:10:06 +0000 (20:10 +0000)
committerTzafrir Cohen <tzafrir.cohen@xorcom.com>
Wed, 2 Nov 2011 20:10:06 +0000 (20:10 +0000)
commitba070152fc7feb8c11bd333faf933cf8d1bb83d4
tree88b30fc452468dc51ebe088ffb8f37cda02e3d2d
parent541435eac7ce1c6d99837fdb9e9d449d21f265b0
dahdi_cfg: add '-S <spanno>' and '-C <chan-ranges>'

* dahdi_cfg -S <num>: only apply changes to span <num>.
* If span is analog (no 'span=<num>,<channels>,...' statement in
  system.conf), we need to set range: -C <channels>
* With the <basechan> and <channels> attributes in sysfs
  we easily configure each device on the fly.
  Simply run: dahdi_cfg -S <spanno> -C <basechan>+<channels>-1
  from udev script

Signed-off-by: Oron Peled <oron.peled@xorcom.com>
Acked-by: Tzafrir Cohen <tzafrir.cohen@xorcom.com>

git-svn-id: http://svn.astersk.org/svn/dahdi/tools/trunk@10306 17933a7a-c749-41c5-a318-cba88f637d49
dahdi_cfg.c
doc/dahdi_cfg.8