summaryrefslogtreecommitdiff
path: root/ztcfg.c
diff options
context:
space:
mode:
authormattf <mattf@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2006-01-10 22:06:29 +0000
committermattf <mattf@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2006-01-10 22:06:29 +0000
commit46962b1907b7c476a969e898f682e82405ef317e (patch)
tree26df36eae566ccde4c3f71897e0951463038d822 /ztcfg.c
parent55dd99f511d3d3aa8e91c013b18c5771c319fcf5 (diff)
Commits for HardHDLC API in zaptel (#5313)
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@887 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'ztcfg.c')
-rw-r--r--ztcfg.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ztcfg.c b/ztcfg.c
index 1c00231..06f9db1 100644
--- a/ztcfg.c
+++ b/ztcfg.c
@@ -571,6 +571,9 @@ static int chanconfig(char *keyword, char *args)
} else if (!strcasecmp(keyword, "dchan")) {
sig[x] = "D-channel";
cc[x].sigtype = ZT_SIG_HDLCFCS;
+ } else if (!strcasecmp(keyword, "hardhdlc")) {
+ sig[x] = "Hardware assisted D-channel";
+ cc[x].sigtype = ZT_SIG_HARDHDLC;
} else {
fprintf(stderr, "Huh? (%s)\n", keyword);
}
@@ -1091,6 +1094,7 @@ static struct handler {
{ "rawhdlc", chanconfig },
{ "nethdlc", chanconfig },
{ "fcshdlc", chanconfig },
+ { "hardhdlc", chanconfig },
{ "dchan", chanconfig },
{ "bchan", chanconfig },
{ "indclear", chanconfig },