[svn-commits] tilghman: branch 1.6.0 r119073 - in /branches/1.6.0: ./ channels/chan_zap.c
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Thu May 29 15:26:18 CDT 2008
Author: tilghman
Date: Thu May 29 15:26:18 2008
New Revision: 119073
URL: http://svn.digium.com/view/asterisk?view=rev&rev=119073
Log:
Merged revisions 119072 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
................
r119072 | tilghman | 2008-05-29 15:25:33 -0500 (Thu, 29 May 2008) | 15 lines
Merged revisions 119071 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r119071 | tilghman | 2008-05-29 15:24:11 -0500 (Thu, 29 May 2008) | 7 lines
Call waiting tone occurs too often, because it's getting serviced by both
subchannels.
(closes issue #11354)
Reported by: cahen
Patches:
20080512__bug11354.diff.txt uploaded by Corydon76 (license 14)
........
................
Modified:
branches/1.6.0/ (props changed)
branches/1.6.0/channels/chan_zap.c
Propchange: branches/1.6.0/
------------------------------------------------------------------------------
Binary property 'trunk-merged' - no diff available.
Modified: branches/1.6.0/channels/chan_zap.c
URL: http://svn.digium.com/view/asterisk/branches/1.6.0/channels/chan_zap.c?view=diff&rev=119073&r1=119072&r2=119073
==============================================================================
--- branches/1.6.0/channels/chan_zap.c (original)
+++ branches/1.6.0/channels/chan_zap.c Thu May 29 15:26:18 2008
@@ -327,10 +327,10 @@
#define MASK_INUSE (1 << 1) /*!< Channel currently in use */
#define CALLWAITING_SILENT_SAMPLES ( (300 * 8) / READ_SIZE) /*!< 300 ms */
-#define CALLWAITING_REPEAT_SAMPLES ( (10000 * 8) / READ_SIZE) /*!< 300 ms */
+#define CALLWAITING_REPEAT_SAMPLES ( (10000 * 8) / READ_SIZE) /*!< 10,000 ms */
#define CIDCW_EXPIRE_SAMPLES ( (500 * 8) / READ_SIZE) /*!< 500 ms */
#define MIN_MS_SINCE_FLASH ( (2000) ) /*!< 2000 ms */
-#define DEFAULT_RINGT ( (8000 * 8) / READ_SIZE)
+#define DEFAULT_RINGT ( (8000 * 8) / READ_SIZE) /*!< 8,000 ms */
struct zt_pvt;
@@ -5422,8 +5422,10 @@
return &p->subs[index].f;
}
}
- if (p->callwaitingrepeat)
+ /* Ensure the CW timer decrements only on a single subchannel */
+ if (p->callwaitingrepeat && zt_get_index(ast, p, 1) == SUB_REAL) {
p->callwaitingrepeat--;
+ }
if (p->cidcwexpire)
p->cidcwexpire--;
/* Repeat callwaiting */
More information about the svn-commits
mailing list