[asterisk-commits] jpeeler: branch jpeeler/chan_dahdi r119079 - /team/jpeeler/chan_dahdi/channels/
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu May 29 16:16:19 CDT 2008
Author: jpeeler
Date: Thu May 29 16:16:18 2008
New Revision: 119079
URL: http://svn.digium.com/view/asterisk?view=rev&rev=119079
Log:
bug 11354 from chan_zap in trunk
Modified:
team/jpeeler/chan_dahdi/channels/chan_dahdi.c
Modified: team/jpeeler/chan_dahdi/channels/chan_dahdi.c
URL: http://svn.digium.com/view/asterisk/team/jpeeler/chan_dahdi/channels/chan_dahdi.c?view=diff&rev=119079&r1=119078&r2=119079
==============================================================================
--- team/jpeeler/chan_dahdi/channels/chan_dahdi.c (original)
+++ team/jpeeler/chan_dahdi/channels/chan_dahdi.c Thu May 29 16:16:18 2008
@@ -328,10 +328,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 dahdi_pvt;
@@ -5386,8 +5386,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 asterisk-commits
mailing list