diff --git a/lib/tasks/cognigy/index.js b/lib/tasks/cognigy/index.js index 01e3b839..a6050192 100644 --- a/lib/tasks/cognigy/index.js +++ b/lib/tasks/cognigy/index.js @@ -200,8 +200,7 @@ class Cognigy extends Task { _makeReferTask(referTo) { const refer = makeTask(this.logger, {'sip:refer': { - referTo, - referredBy: 'cognigy' + referTo }}); return refer; } @@ -298,7 +297,7 @@ class Cognigy extends Task { break; } } catch (err) { - this.logger.info({err, evtData: evt.data}, 'encountered error exeuting task'); + this.logger.info({err, evtData: evt.data}, 'encountered error parsing cognigy response data'); if (!this.hasReportedFinalAction) this.performAction({cognigyResult: 'error', err}); this.reportedFinalAction = true; this.notifyTaskDone();