[zaptel-commits] mattf: trunk r1659 - /trunk/ztcfg.c

zaptel-commits at lists.digium.com zaptel-commits at lists.digium.com
Wed Nov 29 10:34:44 MST 2006


Author: mattf
Date: Wed Nov 29 11:34:43 2006
New Revision: 1659

URL: http://svn.digium.com/view/zaptel?view=rev&rev=1659
Log:
Fix for #7860.  Don't allow channel 16 to be clear in E1/CAS mode.

Modified:
    trunk/ztcfg.c

Modified: trunk/ztcfg.c
URL: http://svn.digium.com/view/zaptel/trunk/ztcfg.c?view=diff&rev=1659&r1=1658&r2=1659
==============================================================================
--- trunk/ztcfg.c (original)
+++ trunk/ztcfg.c Wed Nov 29 11:34:43 2006
@@ -1394,6 +1394,16 @@
 						current_state.channo = cc[x].chan | ZT_GET_PARAMS_RETURN_MASTER;
 						if (ioctl(fd, ZT_GET_PARAMS, &current_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) {



More information about the zaptel-commits mailing list