bugfix: send callInfo data with transcribe transcriptionHook

This commit is contained in:
Dave Horton
2022-09-11 09:25:48 +02:00
parent 5f6a622387
commit dd73ad9add

View File

@@ -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) {