mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2026-10-29 14:54:35 +00:00
kill task after hangup or refer
This commit is contained in:
1 parent
9f757b439f
commit
db6f56a068
1 file changed
+2
@@ -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