diff --git a/lib/tasks/conference.js b/lib/tasks/conference.js index 6442d5d1a..26d3acf1b 100644 --- a/lib/tasks/conference.js +++ b/lib/tasks/conference.js @@ -627,7 +627,7 @@ class Conference extends Task { assert(!this._playSession); const b3 = this.getTracingPropagation(); const httpHeaders = b3 && {b3}; - const json = await cs.application.requestor.request('verb:hook', hook, cs.callInfo, httpHeaders); + const json = await cs.application.requestor.request('verb:hook', hook, cs.callInfo.toJSON(), httpHeaders); const tasks = normalizeJambones(this.logger, json).map((tdata) => makeTask(this.logger, tdata)); const allowedTasks = tasks.filter((t) => allowed.includes(t.name)); diff --git a/lib/tasks/gather.js b/lib/tasks/gather.js index fe0155865..983059f1f 100644 --- a/lib/tasks/gather.js +++ b/lib/tasks/gather.js @@ -879,7 +879,7 @@ class TaskGather extends SttTask { const b3 = this.getTracingPropagation(); const httpHeaders = b3 && {b3}; this.cs.requestor.request('verb:hook', this.partialResultHook, Object.assign({speech: evt}, - this.cs.callInfo, httpHeaders)); + this.cs.callInfo.toJSON(), httpHeaders)); } if (this.vendor === 'soniox') { if (evt.vendor.finalWords.length) { diff --git a/lib/tasks/transcribe.js b/lib/tasks/transcribe.js index 1932adf9a..cfc45d0af 100644 --- a/lib/tasks/transcribe.js +++ b/lib/tasks/transcribe.js @@ -474,7 +474,7 @@ class TaskTranscribe extends SttTask { const b3 = this.getTracingPropagation(); const httpHeaders = b3 && {b3}; const payload = { - ...this.cs.callInfo, + ...this.cs.callInfo.toJSON(), ...httpHeaders, ...(evt.alternatives && {speech: evt}), ...(evt.type && {speechEvent: evt})