mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-20 16:50:39 +00:00
fix gather should not play audio if gather already resolved (#638)
This commit is contained in:
@@ -845,6 +845,9 @@ class TaskGather extends SttTask {
|
|||||||
if (this.resolved) return;
|
if (this.resolved) return;
|
||||||
|
|
||||||
this.resolved = true;
|
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
|
// Clear dtmf event
|
||||||
if (this.dtmfBargein) {
|
if (this.dtmfBargein) {
|
||||||
this.ep.removeAllListeners('dtmf');
|
this.ep.removeAllListeners('dtmf');
|
||||||
|
|||||||
Reference in New Issue
Block a user