fix gather should not play audio if gather already resolved (#638)

This commit is contained in:
Hoan Luu Huu
2024-02-06 19:42:44 +07:00
committed by GitHub
parent 74ede31cd3
commit 48a81072e8

View File

@@ -845,6 +845,9 @@ class TaskGather extends SttTask {
if (this.resolved) return;
this.resolved = true;
// If bargin is false and ws application return ack to verb:hook
// the gather should not play any audio
this._killAudio(this.cs);
// Clear dtmf event
if (this.dtmfBargein) {
this.ep.removeAllListeners('dtmf');