diff --git a/lib/tasks/dial.js b/lib/tasks/dial.js index 026bb400..1944a954 100644 --- a/lib/tasks/dial.js +++ b/lib/tasks/dial.js @@ -273,6 +273,7 @@ class TaskDial extends Task { this._removeDtmfDetection(this.dlg); await this._killOutdials(); if (this.sd) { + this.sd.kill(); this.sd.ep?.removeListener('destroy', this._onSingleDialEndpointDestroy.bind(this)); this.sd.removeAllListeners(); this.sd = null;