[zaptel-commits] trunk r977 - /trunk/wctdm24xxp.c
zaptel-commits at lists.digium.com
zaptel-commits at lists.digium.com
Sat Mar 4 14:51:49 MST 2006
Author: markster
Date: Sat Mar 4 15:51:49 2006
New Revision: 977
URL: http://svn.digium.com/view/zaptel?rev=977&view=rev
Log:
Slightly increase the debounce on ring and actually use the value properly
Modified:
trunk/wctdm24xxp.c
Modified: trunk/wctdm24xxp.c
URL: http://svn.digium.com/view/zaptel/trunk/wctdm24xxp.c?rev=977&r1=976&r2=977&view=diff
==============================================================================
--- trunk/wctdm24xxp.c (original)
+++ trunk/wctdm24xxp.c Sat Mar 4 15:51:49 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