From fc838512b610f70f782053563e070d73dc8802ae Mon Sep 17 00:00:00 2001 From: Hoan Luu Huu <110280845+xquanluu@users.noreply.github.com> Date: Tue, 20 Aug 2024 18:30:32 +0700 Subject: [PATCH] Fixed long amd hints make freeswitch module cannot connect the vendor (#872) * rest call session does not handle for RE-INVITE * fixed long amd hints make freeswitch module cannot connect the vendor --- lib/utils/amd-utils.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/utils/amd-utils.js b/lib/utils/amd-utils.js index 48509a08..81fd9042 100644 --- a/lib/utils/amd-utils.js +++ b/lib/utils/amd-utils.js @@ -246,7 +246,10 @@ module.exports = (logger) => { const amd = ep.amd = new Amd(logger, cs, opts); const {vendor, language} = amd; let sttCredentials = amd.sttCredentials; - const hints = voicemailHints[language] || []; + // hints from configuration might be too long for specific language and vendor that make transcribe freeswitch + // modules cannot connect to the vendor. hints is used in next step to validate if the transcription + // matchs voice mail hints. + const hints = []; if (vendor === 'nuance' && sttCredentials.client_id) { /* get nuance access token */