diff --git a/Dockerfile b/Dockerfile index ecb7af44..c122197e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM node:17.7.1-slim +FROM node:slim WORKDIR /opt/app/ COPY package.json ./ RUN npm install @@ -7,4 +7,4 @@ COPY . /opt/app ARG NODE_ENV ENV NODE_ENV $NODE_ENV -CMD [ "npm", "start" ] \ No newline at end of file +CMD [ "npm", "start" ] diff --git a/lib/tasks/gather.js b/lib/tasks/gather.js index 5cd1aab5..a5b65f0a 100644 --- a/lib/tasks/gather.js +++ b/lib/tasks/gather.js @@ -385,7 +385,7 @@ class TaskGather extends Task { } } if (evt.is_final) { - if (evt.alternatives[0].transcript === '' && !this.callSession.callGone) { + if (evt.alternatives[0].transcript === '' && !this.callSession.callGonen && !this.killed) { this.logger.info({evt}, 'TaskGather:_onTranscription - got empty transcript, listen again'); return this._startTranscribing(ep); }