mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-21 17:17:58 +00:00
bugfix: send callInfo data with transcribe transcriptionHook
This commit is contained in:
@@ -302,7 +302,7 @@ class TaskTranscribe extends Task {
|
|||||||
const b3 = this.getTracingPropagation();
|
const b3 = this.getTracingPropagation();
|
||||||
const httpHeaders = b3 && {b3};
|
const httpHeaders = b3 && {b3};
|
||||||
this.cs.requestor.request('verb:hook', this.transcriptionHook,
|
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'));
|
.catch((err) => this.logger.info(err, 'TranscribeTask:_onTranscription error'));
|
||||||
}
|
}
|
||||||
if (this.parentTask) {
|
if (this.parentTask) {
|
||||||
|
|||||||
Reference in New Issue
Block a user