diff options
author | markster <markster@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2006-03-04 21:51:49 +0000 |
---|---|---|
committer | markster <markster@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2006-03-04 21:51:49 +0000 |
commit | 607abfbfbbef40b648320d88539607922f0de628 (patch) | |
tree | 2428bcdb74aff6ffbf5c9941a4a7d00e5a8858c7 | |
parent | 07bb7706f1f0156e13d6d0a64e86b4ba2b8b4791 (diff) |
Slightly increase the debounce on ring and actually use the value properly
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@977 5390a7c7-147a-4af0-8ec9-7488f05a26cb
-rw-r--r-- | wctdm24xxp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/wctdm24xxp.c b/wctdm24xxp.c index ded188f..eb9b9d8 100644 --- a/wctdm24xxp.c +++ b/wctdm24xxp.c @@ -237,7 +237,7 @@ static struct fxo_mode { #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 @@ static inline void wctdm_voicedaa_check_hook(struct wctdm *wc, int card) 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; |