From 878578fe0f9ca6c744e3088c5f9c80d919540f41 Mon Sep 17 00:00:00 2001 From: Hoan Luu Huu <110280845+xquanluu@users.noreply.github.com> Date: Mon, 11 Mar 2024 19:46:38 +0700 Subject: [PATCH] Fix/issue 676 (#680) * fix bargin is not working * fix bargin is not working --- lib/session/call-session.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/session/call-session.js b/lib/session/call-session.js index 788b55a7..468d0181 100644 --- a/lib/session/call-session.js +++ b/lib/session/call-session.js @@ -684,7 +684,8 @@ class CallSession extends Emitter { } task = await this.backgroundTaskManager.newTask('bargeIn', gather); task.sticky = autoEnable; - task.once('bargeIn-done', () => { + // listen to the bargein-done from background manager + this.backgroundTaskManager.once('bargeIn-done', () => { if (this.requestor instanceof WsRequestor) { try { this.kill(true);