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 484e1d1..c81b0ae 100755
--- a/wct4xxp.c
+++ b/wct4xxp.c
@@ -563,6 +563,10 @@ static void __t4_check_vpm(struct t4 *wc, unsigned int newio)
ts->dtmfactive |= (1 << base);
ts->dtmfenergy[base] = energy;
ts->dtmfdigit[base] = digit;
+ if (ts->dtmfdigit[base]) {
+ if (ts->dtmfmask & (1 << base))
+ zt_qevent_lock(&ts->span.chans[base], (ZT_EVENT_DTMFUP | ts->dtmfdigit[base]));
+ }
if (ts->dtmfmask & (1 << base))
zt_qevent_lock(&ts->span.chans[base], (ZT_EVENT_DTMFDOWN | digit));
if (ts->dtmfmutemask & (1 << base)) {