[zaptel-commits] mattf: branch 1.2 r1657 - /branches/1.2/ztcfg.c

zaptel-commits at lists.digium.com zaptel-commits at lists.digium.com
Wed Nov 29 10:22:40 MST 2006


Author: mattf
Date: Wed Nov 29 11:22:38 2006
New Revision: 1657

URL: http://svn.digium.com/view/zaptel?view=rev&rev=1657
Log:
Fix for #7860.  Make sure we don't allow channel 16 to be set as clean in E1/CAS mode.

Modified:
    branches/1.2/ztcfg.c

Modified: branches/1.2/ztcfg.c
URL: http://svn.digium.com/view/zaptel/branches/1.2/ztcfg.c?view=diff&rev=1657&r1=1656&r2=1657
==============================================================================
--- branches/1.2/ztcfg.c (original)
+++ branches/1.2/ztcfg.c Wed Nov 29 11:22:38 2006
@@ -1281,6 +1281,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