diff options
author | markster <markster@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2004-01-13 17:11:34 +0000 |
---|---|---|
committer | markster <markster@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2004-01-13 17:11:34 +0000 |
commit | 2ff767e622f6f446bcbe413d7405f72f3393e932 (patch) | |
tree | 4ce74b35e1a38a87ad88eac0780d75a12fa878aa /ztcfg.c | |
parent | 07a44af7e04f25b0b4cb916842bf0040f618e984 (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-x | ztcfg.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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); } |