Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/tasks/conference.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down
2 changes: 1 addition & 1 deletion lib/tasks/gather.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion lib/tasks/transcribe.js
Original file line number Diff line number Diff line change
Expand Up @@ -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})
Expand Down