diff --git a/lib/tasks/gather.js b/lib/tasks/gather.js index 9cff960c..db4a0ff9 100644 --- a/lib/tasks/gather.js +++ b/lib/tasks/gather.js @@ -1108,8 +1108,9 @@ class TaskGather extends SttTask { if (this.partialResultHook) { const b3 = this.getTracingPropagation(); const httpHeaders = b3 && {b3}; - this.cs.requestor.request('verb:hook', this.partialResultHook, Object.assign({speech: evt}, - this.cs.callInfo, httpHeaders)); + const params = {speech: evt, ...this.cs.callInfo.toJSON()}; + if (this.id) params.verb_id = this.id; + this.cs.requestor.request('verb:hook', this.partialResultHook, params, httpHeaders); } else if (this.vendor === 'deepgramflux' && ['EagerEndOfTurn', 'TurnResumed'].includes(evt.vendor.evt?.event)) {