[zaptel-commits] branch 1.2 r976 - /branches/1.2/wctdm24xxp.c

zaptel-commits at lists.digium.com zaptel-commits at lists.digium.com
Sat Mar 4 14:51:00 MST 2006


Author: markster
Date: Sat Mar  4 15:50:59 2006
New Revision: 976

URL: http://svn.digium.com/view/zaptel?rev=976&view=rev
Log:
Increase default ring debounce slightly and use the value properly.

Modified:
    branches/1.2/wctdm24xxp.c

Modified: branches/1.2/wctdm24xxp.c
URL: http://svn.digium.com/view/zaptel/branches/1.2/wctdm24xxp.c?rev=976&r1=975&r2=976&view=diff
==============================================================================
--- branches/1.2/wctdm24xxp.c (original)
+++ branches/1.2/wctdm24xxp.c Sat Mar  4 15:50:59 2006
@@ -237,7 +237,7 @@
 #define FLAG_WRITE	1
 #define FLAG_READ	2
 
-#define RING_DEBOUNCE	64		/* Ringer Debounce (in ms) */
+#define RING_DEBOUNCE	128		/* Ringer Debounce (in ms) */
 #define DEFAULT_BATT_DEBOUNCE	64		/* Battery debounce (in ms) */
 #define POLARITY_DEBOUNCE 64           /* Polarity debounce (in ms) */
 #define DEFAULT_BATT_THRESH	3		/* Anything under this is "no battery" */
@@ -1100,14 +1100,14 @@
 		res = wc->cmdq[card].isrshadow[0];	/* Hook/Ring state */
 		if ((res & 0x60) && wc->mods[card].fxo.battery) {
 			wc->mods[card].fxo.ringdebounce += (ZT_CHUNKSIZE * 4);
-			if (wc->mods[card].fxo.ringdebounce >= ZT_CHUNKSIZE * 64) {
+			if (wc->mods[card].fxo.ringdebounce >= ZT_CHUNKSIZE * RING_DEBOUNCE) {
 				if (!wc->mods[card].fxo.wasringing) {
 					wc->mods[card].fxo.wasringing = 1;
 					zt_hooksig(&wc->chans[card], ZT_RXSIG_RING);
 					if (debug)
 						printk("RING on %d/%d!\n", wc->span.spanno, card + 1);
 				}
-				wc->mods[card].fxo.ringdebounce = ZT_CHUNKSIZE * 64;
+				wc->mods[card].fxo.ringdebounce = ZT_CHUNKSIZE * RING_DEBOUNCE;
 			}
 		} else {
 			wc->mods[card].fxo.ringdebounce -= ZT_CHUNKSIZE;



More information about the zaptel-commits mailing list