diff options
author | markster <markster@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2006-03-04 21:50:59 +0000 |
---|---|---|
committer | markster <markster@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2006-03-04 21:50:59 +0000 |
commit | dacb67751eed011d939a8ea260d5be5db089b224 (patch) | |
tree | d4bdcc913e1acf825b4384f7e4c6d942cbd678be /wctdm24xxp.c | |
parent | d7e83af783a16e1aa85a37ca987472727e8aa69f (diff) |
Increase default ring debounce slightly and use the value properly.
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@976 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'wctdm24xxp.c')
-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; |