fixed transcription is not received when call is terminated (#1259)

* fixed transcription is not received when call is terminated

* wip

* fixed failing testcases

* wip

* wip

* wip

* wip

* should not do gracefulshutdown on stopAmd
This commit is contained in:
Hoan Luu Huu
2025-07-09 21:20:09 +07:00
committed by GitHub
parent 444abcb036
commit 337c1cded0
8 changed files with 189 additions and 130 deletions

View File

@@ -418,7 +418,11 @@ module.exports = (logger) => {
}
if (ep.connected) {
ep.stopTranscription({vendor, bugname})
ep.stopTranscription({
vendor,
bugname,
gracefulShutdown: false
})
.catch((err) => logger.info(err, 'stopAmd: Error stopping transcription'));
task.emit('amd', {type: AmdEvents.Stopped});
ep.execute('avmd_stop').catch((err) => this.logger.info(err, 'Error stopping avmd'));