mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-21 17:17:58 +00:00
kill task after hangup or refer
This commit is contained in:
@@ -223,12 +223,14 @@ class Cognigy extends Task {
|
||||
this.performAction({cognigyResult: 'hangup Succeeded'});
|
||||
this.reportedFinalAction = true;
|
||||
this.notifyTaskDone();
|
||||
this.kill(cs);
|
||||
return;
|
||||
case 'refer':
|
||||
await this._makeReferTask(evt.data.number);
|
||||
this.performAction({cognigyResult: 'refer succeeded'});
|
||||
this.reportedFinalAction = true;
|
||||
this.notifyTaskDone();
|
||||
this.kill(cs);
|
||||
return;
|
||||
default:
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user