From 11035264ecb49629c14960bd7283ec05ba0d83ed Mon Sep 17 00:00:00 2001 From: akirilyuk Date: Tue, 1 Feb 2022 18:34:34 +0100 Subject: [PATCH] change the way we create tasks for cognigy --- lib/tasks/cognigy/index.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/tasks/cognigy/index.js b/lib/tasks/cognigy/index.js index 8439aa6d..1f9863f6 100644 --- a/lib/tasks/cognigy/index.js +++ b/lib/tasks/cognigy/index.js @@ -200,19 +200,19 @@ class Cognigy extends Task { } _makeReferTask(number) { - const refer = makeTask(this.logger, normalizeJambones(this.logger, [{'sip:refer': { + const refer = makeTask(this.logger, {'sip:refer': { referTo: number, referredBy: 'cognigy' - }}])[0]); + }}); return refer; } _makeHangupTask(reason) { - const hangup = makeTask(this.logger, normalizeJambones(this.logger, [{hangup: { + const hangup = makeTask(this.logger, {hangup: { headers: { 'X-Reason': reason } - }}])[0]); + }}); return hangup; }