From 9908485eb81b0ef765950fa5bf44d9c5c7a5bb73 Mon Sep 17 00:00:00 2001 From: Dave Horton Date: Wed, 2 Mar 2022 10:15:40 -0500 Subject: [PATCH] bugfix: sip:refer would not finish if caller hungup before refer got final notify --- lib/tasks/sip_refer.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/tasks/sip_refer.js b/lib/tasks/sip_refer.js index 3dd9fb9b..ea5f0456 100644 --- a/lib/tasks/sip_refer.js +++ b/lib/tasks/sip_refer.js @@ -51,6 +51,7 @@ class TaskSipRefer extends Task { super.kill(cs); const {dlg} = cs; dlg.off('notify', this.notifyHandler); + this.notifyTaskDone(); } async _handleNotify(cs, dlg, req, res) {