From dd73ad9addbe27e0456dd04f9d43864e691818d1 Mon Sep 17 00:00:00 2001 From: Dave Horton Date: Sun, 11 Sep 2022 09:25:48 +0200 Subject: [PATCH] bugfix: send callInfo data with transcribe transcriptionHook --- lib/tasks/transcribe.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tasks/transcribe.js b/lib/tasks/transcribe.js index f9c8d399..fbb1b780 100644 --- a/lib/tasks/transcribe.js +++ b/lib/tasks/transcribe.js @@ -302,7 +302,7 @@ class TaskTranscribe extends Task { const b3 = this.getTracingPropagation(); const httpHeaders = b3 && {b3}; this.cs.requestor.request('verb:hook', this.transcriptionHook, - Object.assign({speech: evt}, this.cs.callInfo), httpHeaders) + Object.assign({speech: evt}, this.cs.callInfo.toJSON()), httpHeaders) .catch((err) => this.logger.info(err, 'TranscribeTask:_onTranscription error')); } if (this.parentTask) {