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
This commit is contained in:
Hoan Luu Huu
2024-08-20 18:30:32 +07:00
committed by GitHub
parent 68992bccf6
commit fc838512b6

View File

@@ -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 */