diff --git a/lib/http-routes/api/create-call.js b/lib/http-routes/api/create-call.js index 8fdb3089..5be4a9c8 100644 --- a/lib/http-routes/api/create-call.js +++ b/lib/http-routes/api/create-call.js @@ -84,7 +84,6 @@ router.post('/', async(req, res) => { } } - /* create endpoint for outdial */ const ms = getFreeswitch(); if (!ms) throw new Error('no available Freeswitch for outbound call creation'); diff --git a/lib/tasks/gather.js b/lib/tasks/gather.js index a09f6e93..1ee69d83 100644 --- a/lib/tasks/gather.js +++ b/lib/tasks/gather.js @@ -27,7 +27,7 @@ class TaskGather extends Task { /* timeout of zero means no timeout */ this.timeout = this.timeout === 0 ? 0 : (this.timeout || 15) * 1000; - this.interim = this.partialResultHook || this.bargein; + this.interim = !!this.partialResultHook || this.bargein; this.listenDuringPrompt = this.data.listenDuringPrompt === false ? false : true; this.minBargeinWordCount = this.data.minBargeinWordCount || 0; if (this.data.recognizer) { @@ -517,7 +517,7 @@ class TaskGather extends Task { if (this.partialResultHook) { const b3 = this.getTracingPropagation(); const httpHeaders = b3 && {b3}; - this.cs.requestor.request(this.partialResultHook, Object.assign({speech: evt}, + this.cs.requestor.request('verb:hook', this.partialResultHook, Object.assign({speech: evt}, this.cs.callInfo, httpHeaders)); } }