diff --git a/lib/tasks/gather.js b/lib/tasks/gather.js index ab8aa44a..6db19a17 100644 --- a/lib/tasks/gather.js +++ b/lib/tasks/gather.js @@ -788,6 +788,10 @@ class TaskGather extends Task { if (this.resolved) return; this.resolved = true; + // Clear dtmf event + if (this.dtmfBargein) { + this.ep.removeAllListeners('dtmf'); + } clearTimeout(this.interDigitTimer); this._clearTimer();