summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xwct4xxp.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/wct4xxp.c b/wct4xxp.c
index d66a897..658cba6 100755
--- a/wct4xxp.c
+++ b/wct4xxp.c
@@ -566,6 +566,10 @@ static void __t4_check_vpm(struct t4 *wc, unsigned int newio)
energy = ZT_XLAW(energy, ts->chans);
ts->dtmfactive |= (1 << base);
ts->dtmfenergy[base] = energy;
+ if (ts->dtmfdigit[base]) {
+ if (ts->dtmfmask & (1 << base))
+ zt_qevent_lock(&ts->span.chans[base], (ZT_EVENT_DTMFUP | ts->dtmfdigit[base]));
+ }
ts->dtmfdigit[base] = digit;
if (ts->dtmfmask & (1 << base))
zt_qevent_lock(&ts->span.chans[base], (ZT_EVENT_DTMFDOWN | digit));