[Asterisk-cvs] zaptel wct4xxp.c,1.89,1.90

markster markster
Thu Sep 29 10:00:11 CDT 2005


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

Modified Files:
	wct4xxp.c 
Log Message:
Allow DTMF to be disabled on VPM...


Index: wct4xxp.c
===================================================================
RCS file: /usr/cvsroot/zaptel/wct4xxp.c,v
retrieving revision 1.89
retrieving revision 1.90
diff -u -d -r1.89 -r1.90
--- wct4xxp.c	14 Sep 2005 04:46:47 -0000	1.89
+++ wct4xxp.c	29 Sep 2005 13:56:45 -0000	1.90
@@ -174,6 +174,7 @@
 static int alarmdebounce = 0;
 #ifdef VPM_SUPPORT
 static int vpmsupport = 1;
+static int vpmdtmfsupport = 1;
 static int vpmspans = 4;
 #define VPM_DEFAULT_DTMFTHRESHOLD 1000
 static int dtmfthreshold = VPM_DEFAULT_DTMFTHRESHOLD;
@@ -776,6 +777,8 @@
 			return -EFAULT;
 		if (!wc->vpm)
 			return -ENOSYS;
+		if (j && !vpmdtmfsupport)
+			return -ENOSYS;
 		if (j & ZT_TONEDETECT_ON)
 			ts->dtmfmask |= (1 << (chan->chanpos - 1));
 		else
@@ -2965,6 +2968,7 @@
 module_param(j1mode, int, 0600);
 #ifdef VPM_SUPPORT
 module_param(vpmsupport, int, 0600);
+module_param(vpmdtmfsupport, int, 0600);
 module_param(vpmspans, int, 0600);
 module_param(dtmfthreshold, int, 0600);
 #endif
@@ -2980,6 +2984,7 @@
 MODULE_PARM(j1mode, "i");
 #ifdef VPM_SUPPORT
 MODULE_PARM(vpmsupport, "i");
+MODULE_PARM(vpmdtmfsupport, "i");
 MODULE_PARM(vpmspans, "i");
 MODULE_PARM(dtmfthreshold, "i");
 #endif




More information about the svn-commits mailing list