Commit 49361e5c authored by Shaun Ruffell's avatar Shaun Ruffell Committed by Russ Meyerriecks

dahdi_cfg: Warn if idle bits are set on invalid channel type.

Hopefully will save a little time in the future if anyone ever types into


when they meant:


in the future.
Signed-off-by: 's avatarShaun Ruffell <>
Signed-off-by: 's avatarRuss Meyerriecks <>
parent 8045f7f4
......@@ -762,7 +762,16 @@ static int chanconfig(char *keyword, char *args)
} else {
fprintf(stderr, "Huh? (%s)\n", keyword);
if (is_digital)
if (cc[x].sigtype != DAHDI_SIG_CAS &&
cc[x].sigtype != DAHDI_SIG_DACS &&
cc[x].sigtype != DAHDI_SIG_DACS_RBS) {
if (NULL != idle) {
fprintf(stderr, "WARNING: idlebits are not valid on %s channels.\n", sig[x]);
if (is_digital)
chan2span[x] = current_span;
current_span = 0;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment