when closing websocket at end of call send ws code 1000

This commit is contained in:
Dave Horton
2023-01-22 12:46:20 -05:00
parent 1b5b37184b
commit dae307d71f
2 changed files with 3 additions and 1 deletions

View File

@@ -18,6 +18,7 @@ class TaskHangup extends Task {
await super.exec(cs);
try {
await dlg.destroy({headers: this.headers});
cs._callReleased();
} catch (err) {
this.logger.error(err, 'TaskHangup:exec - Error hanging up call');
}