From c88ead7f71895739d4bd41bfc31bcd3050a1d498 Mon Sep 17 00:00:00 2001 From: akirilyuk Date: Tue, 1 Feb 2022 18:39:45 +0100 Subject: [PATCH] remove double replace application call --- lib/tasks/cognigy/index.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/lib/tasks/cognigy/index.js b/lib/tasks/cognigy/index.js index 8963d22d..01e3b839 100644 --- a/lib/tasks/cognigy/index.js +++ b/lib/tasks/cognigy/index.js @@ -283,11 +283,6 @@ class Cognigy extends Task { this.performAction({cognigyResult: 'hangup Succeeded'}); this.reportedFinalAction = true; cs.replaceApplication([this._makeHangupTask(evt.data.reason)]); - cs.replaceApplication([{hangup: { - headers: { - 'X-Reason': evt.data.reason - } - }}]); this.taskQueue.end(); });