[Asterisk-cvs] zaptel zaptel.c,1.57,1.58 zconfig.h,1.3,1.4

jim at lists.digium.com jim at lists.digium.com
Tue Feb 10 01:49:24 CST 2004


Update of /usr/cvsroot/zaptel
In directory mongoose.digium.com:/tmp/cvs-serv12706

Modified Files:
	zaptel.c zconfig.h 
Log Message:
Added support (config definition on zconfig.h) for channel banks (such as
the CAC) which require a non-standard A/B bit pattern for the FXS groundstart
start state (CONFIG_CAC_GROUNDSTART).


Index: zaptel.c
===================================================================
RCS file: /usr/cvsroot/zaptel/zaptel.c,v
retrieving revision 1.57
retrieving revision 1.58
diff -u -d -r1.57 -r1.58
--- zaptel.c	8 Feb 2004 17:22:20 -0000	1.57
+++ zaptel.c	10 Feb 2004 07:58:09 -0000	1.58
@@ -1746,7 +1746,11 @@
 		ZT_ABIT | ZT_BBIT | ZT_CBIT | ZT_DBIT,
 			ZT_ABIT | ZT_BBIT | ZT_CBIT | ZT_DBIT, 0 }, /* FXS Loopstart */
 	{ ZT_SIG_FXSGS, 	ZT_BBIT | ZT_DBIT, 
-		ZT_ABIT | ZT_BBIT | ZT_CBIT | ZT_DBIT, ZT_ABIT | ZT_CBIT, 0 }, /* FXS Groundstart */
+#ifdef CONFIG_CAC_GROUNDSTART
+		ZT_ABIT | ZT_BBIT | ZT_CBIT | ZT_DBIT, 0, 0 }, /* FXS Groundstart (CAC-style) */
+#else
+		ZT_ABIT | ZT_BBIT | ZT_CBIT | ZT_DBIT, ZT_ABIT | ZT_CBIT, 0 }, /* FXS Groundstart (normal) */
+#endif
 	{ ZT_SIG_FXSKS,		ZT_BBIT | ZT_DBIT, 
 		ZT_ABIT | ZT_BBIT | ZT_CBIT | ZT_DBIT,
 			ZT_ABIT | ZT_BBIT | ZT_CBIT | ZT_DBIT, 0 }, /* FXS Kewlstart */

Index: zconfig.h
===================================================================
RCS file: /usr/cvsroot/zaptel/zconfig.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- zconfig.h	7 Feb 2004 04:33:41 -0000	1.3
+++ zconfig.h	10 Feb 2004 07:58:09 -0000	1.4
@@ -76,5 +76,11 @@
 /* Tone zone info */
 #define DEFAULT_TONE_ZONE 0
 
+/*
+ * Uncomment for Non-standard FXS groundstart start state (A=Low, B=Low)
+ * particularly for CAC channel bank groundstart FXO ports.
+ */
+/* #define CONFIG_CAC_GROUNDSTART */
+
 
 #endif




More information about the svn-commits mailing list