mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2026-10-28 14:24:29 +00:00
fix: gather task should clear dtmf event before resolve (#284)
Co-authored-by: Quan HL <quanluuhoang8@gmail.com>
This commit is contained in:
1 parent
63ab554908
commit
0dd161913c
1 file changed
+4
@@ -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();
|
||||
|
||||
|
||||
Reference in new issue
Block a user