diff options
author | Tzafrir Cohen <tzafrir.cohen@xorcom.com> | 2011-11-02 20:10:06 +0000 |
---|---|---|
committer | Tzafrir Cohen <tzafrir.cohen@xorcom.com> | 2011-11-02 20:10:06 +0000 |
commit | 142f48d0d460adeeea779a1ab4c5dda7495d6308 (patch) | |
tree | f93b2feaa9260d8fa09d8d4f4a7dbb9da86d3867 /doc | |
parent | bfa413298ae251fdd60df09a0924763cd8089a72 (diff) |
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.asterisk.org/svn/dahdi/tools/trunk@10306 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'doc')
-rw-r--r-- | doc/dahdi_cfg.8 | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/doc/dahdi_cfg.8 b/doc/dahdi_cfg.8 index 7a1fe88..5e1eaa2 100644 --- a/doc/dahdi_cfg.8 +++ b/doc/dahdi_cfg.8 @@ -4,7 +4,7 @@ dahdi_cfg \- configures DAHDI kernel modules from /etc/dahdi/system.conf .SH SYNOPSIS -.B dahdi_cfg [\-c \fICFG_FILE\fB] [\-s] [\-f] [\-t] [\-v [\-v ... ] ] +.B dahdi_cfg [\-c \fICFG_FILE\fB] [\-S\fINUM\fB [-S\fICHANS\fB]] [\-s] [\-f] [\-t] [\-v [\-v ... ] ] .B dahdi_cfg \-h @@ -26,11 +26,25 @@ Use an alternative configuration file instead of .I /etc/dahdi/system.conf .RE +.B \-C \fICHANNELS +.RS +Only apply changes to channels in the specified range. Only +applicable when \-S is in use. +.RE + .B \-s .RS Only shutdown spans. .RE +.B \-S \fISPAN +.RS +Only apply changes to span no. \fISPAN\fR. For a digital span (with +a 'span=' line in the configuration file) this will do. For an analog +span you'll have to explicitly tell dahdi_cfg the range of channels, +using \-C . +.RE + .B \-f .RS Always configure every channel, even if it appears not to have changed. |