[zaptel-commits] sruffell: branch 1.4 r4547 - /branches/1.4/kernel/wctdm.c
SVN commits to the Zaptel project
zaptel-commits at lists.digium.com
Sun Sep 28 12:29:09 CDT 2008
Author: sruffell
Date: Sun Sep 28 12:29:07 2008
New Revision: 4547
URL: http://svn.digium.com/view/zaptel?view=rev&rev=4547
Log:
mprove reliablity of UK caller ID for the TDM400P by not allowing the
ringdebounce to be decremented when it is at 0 already.
Related to issue #12531. Reported mattbrown, fix suggested by benbrown.
Modified:
branches/1.4/kernel/wctdm.c
Modified: branches/1.4/kernel/wctdm.c
URL: http://svn.digium.com/view/zaptel/branches/1.4/kernel/wctdm.c?view=diff&rev=4547&r1=4546&r2=4547
==============================================================================
--- branches/1.4/kernel/wctdm.c (original)
+++ branches/1.4/kernel/wctdm.c Sun Sep 28 12:29:07 2008
@@ -772,7 +772,8 @@
if (!fxo->offhook) {
if (fwringdetect) {
res = wc->reg0shadow[card] & 0x60;
- if (fxo->ringdebounce--) {
+ if (fxo->ringdebounce) {
+ --fxo->ringdebounce;
if (res && (res != fxo->lastrdtx) &&
(fxo->battery == BATTERY_PRESENT)) {
if (!fxo->wasringing) {
More information about the zaptel-commits
mailing list