mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-20 16:50:39 +00:00
gather verb should clean dtmf listerner even dtmfBargein=false (#686)
This commit is contained in:
@@ -965,10 +965,8 @@ class TaskGather extends SttTask {
|
|||||||
// If bargin is false and ws application return ack to verb:hook
|
// If bargin is false and ws application return ack to verb:hook
|
||||||
// the gather should not play any audio
|
// the gather should not play any audio
|
||||||
this._killAudio(this.cs);
|
this._killAudio(this.cs);
|
||||||
// Clear dtmf event
|
// Clear dtmf events, to avoid any case can leak the listener, just clean it
|
||||||
if (this.dtmfBargein) {
|
this.ep.removeAllListeners('dtmf');
|
||||||
this.ep.removeAllListeners('dtmf');
|
|
||||||
}
|
|
||||||
clearTimeout(this.interDigitTimer);
|
clearTimeout(this.interDigitTimer);
|
||||||
this._clearTimer();
|
this._clearTimer();
|
||||||
this._clearFastRecognitionTimer();
|
this._clearFastRecognitionTimer();
|
||||||
|
|||||||
Reference in New Issue
Block a user