summaryrefslogtreecommitdiff
path: root/ztcfg.c
diff options
context:
space:
mode:
authormarkster <markster@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2004-01-13 17:11:34 +0000
committermarkster <markster@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2004-01-13 17:11:34 +0000
commit2ff767e622f6f446bcbe413d7405f72f3393e932 (patch)
tree4ce74b35e1a38a87ad88eac0780d75a12fa878aa /ztcfg.c
parent07a44af7e04f25b0b4cb916842bf0040f618e984 (diff)
Allow you to use dchan=24,48 for example
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@300 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'ztcfg.c')
-rwxr-xr-xztcfg.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/ztcfg.c b/ztcfg.c
index 3b100e7..aa44f28 100755
--- a/ztcfg.c
+++ b/ztcfg.c
@@ -469,7 +469,7 @@ static int chanconfig(char *keyword, char *args)
cc[x].sigtype = ZT_SIG_HDLCNET;
master = x;
}
- } else if (!strcasecmp(keyword, "fcshdlc") || !strcasecmp(keyword, "dchan")) {
+ } else if (!strcasecmp(keyword, "fcshdlc")) {
sig[x] = "HDLC with FCS check";
if (master) {
cc[x].sigtype = ZT_SIG_SLAVE;
@@ -478,6 +478,9 @@ static int chanconfig(char *keyword, char *args)
cc[x].sigtype = ZT_SIG_HDLCFCS;
master = x;
}
+ } else if (!strcasecmp(keyword, "dchan")) {
+ sig[x] = "D-channel";
+ cc[x].sigtype = ZT_SIG_HDLCFCS;
} else {
fprintf(stderr, "Huh? (%s)\n", keyword);
}