cleanup alerts

This commit is contained in:
Dave Horton
2023-11-30 13:53:13 -05:00
parent 7718f50877
commit 29dc2f7052

View File

@@ -828,10 +828,10 @@ class TaskGather extends SttTask {
writeAlerts({ writeAlerts({
account_sid: cs.accountSid, account_sid: cs.accountSid,
alert_type: AlertType.STT_FAILURE, alert_type: AlertType.STT_FAILURE,
message: `Custom speech vendor ${this.vendor} error: ${errMessage}`, message: `Speech vendor ${this.vendor} error: ${errMessage}`,
vendor: this.vendor, vendor: this.vendor,
}).catch((err) => this.logger.info({err}, 'Error generating alert for jambonz custom connection failure')); }).catch((err) => this.logger.info({err}, 'Error generating alert for jambonz custom connection failure'));
this.notifyError({msg: 'ASR error', details:`Custom speech vendor ${this.vendor} error: ${evt.error}`}); this.notifyError({msg: 'ASR error', details:`Speech vendor ${this.vendor} error: ${evt.error}`});
} }
_onVendorConnectFailure(cs, _ep, evt) { _onVendorConnectFailure(cs, _ep, evt) {