Skip to content

Commit

Permalink
support kill dial if sd ep is media timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
xquanluu committed Dec 11, 2024
1 parent 3582136 commit d005278
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/tasks/dial.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d005278

Please sign in to comment.