diff options
author | mattf <mattf@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2006-11-29 17:34:43 +0000 |
---|---|---|
committer | mattf <mattf@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2006-11-29 17:34:43 +0000 |
commit | d7a55c71cc67b9cb2324760c8cd1c83815242d73 (patch) | |
tree | 2236fddbb784cb274f8fd2d45cb0d94faf1f3db3 | |
parent | c679d33437b2fb47c428eb3414f85cc81d2b4f02 (diff) |
Fix for #7860. Don't allow channel 16 to be clear in E1/CAS mode.
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@1659 5390a7c7-147a-4af0-8ec9-7488f05a26cb
-rw-r--r-- | ztcfg.c | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -1394,6 +1394,16 @@ int main(int argc, char *argv[]) current_state.channo = cc[x].chan | ZT_GET_PARAMS_RETURN_MASTER; if (ioctl(fd, ZT_GET_PARAMS, ¤t_state)) needupdate = 1; + else if (current_state.chanpos == 16 && + (cc[x].sigtype & ZT_SIG_CLEAR) && + !(lc[current_state.spanno - 1].lineconfig & + (ZT_CONFIG_D4|ZT_CONFIG_ESF|ZT_CONFIG_B8ZS|ZT_CONFIG_CCS))) { + fprintf(stderr, + "CAS signalling on span %u conflicts with %s on channel %u.\n", + current_state.spanno, + sigtype_to_str(cc[x].sigtype), x); + exit(1); + } } if (!needupdate) { |