diff options
author | mattf <mattf@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2008-05-11 01:57:08 +0000 |
---|---|---|
committer | mattf <mattf@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2008-05-11 01:57:08 +0000 |
commit | 5b015bcfeb0e884409fed5da755e7df15e022ba9 (patch) | |
tree | 1b075b5efa5fb6f6c28ee2eda354fcf5a14b1a4d /ztcfg.c | |
parent | 544da9d823dd32caee4d487a06c6dd37b8de9ae8 (diff) |
Merge in kernel level MTP2 branch.
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4250 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'ztcfg.c')
-rw-r--r-- | ztcfg.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -160,6 +160,8 @@ static const char *sigtype_to_str(const int sig) return "HDLC with FCS check"; case ZT_SIG_HARDHDLC: return "Hardware assisted D-channel"; + case ZT_SIG_MTP2: + return "MTP2"; default: return "Unknown"; } @@ -590,6 +592,9 @@ static int chanconfig(char *keyword, char *args) } else if (!strcasecmp(keyword, "hardhdlc")) { sig[x] = "Hardware assisted D-channel"; cc[x].sigtype = ZT_SIG_HARDHDLC; + } else if (!strcasecmp(keyword, "mtp2")) { + sig[x] = "MTP2"; + cc[x].sigtype = ZT_SIG_MTP2; } else { fprintf(stderr, "Huh? (%s)\n", keyword); } @@ -1201,6 +1206,7 @@ static struct handler { { "nethdlc", chanconfig }, { "fcshdlc", chanconfig }, { "hardhdlc", chanconfig }, + { "mtp2", chanconfig }, { "dchan", chanconfig }, { "bchan", chanconfig }, { "indclear", chanconfig }, |