mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-20 16:50:39 +00:00
* fixes from testing * modify Task#exec to take resources as an object rather than argument list * pass 2 endpoints to Transcribe when invoked in a SipRec call session * logging * change siprec invite to sendrecv just so freeswitch does not try to reinvite (TODO: block outgoing media at rtpengine) * Config: when enabling recording, block until siprec dialog is established * missed play verb in commit 031c79d * linting * bugfix: get final transcript in siprec call
23 lines
416 B
JavaScript
23 lines
416 B
JavaScript
const Task = require('./task');
|
|
const {TaskName} = require('../utils/constants');
|
|
|
|
class TaskLeave extends Task {
|
|
constructor(logger, opts, parentTask) {
|
|
super(logger, opts);
|
|
}
|
|
|
|
get name() { return TaskName.Leave; }
|
|
|
|
async exec(cs, {ep}) {
|
|
await super.exec(cs);
|
|
await this.awaitTaskDone();
|
|
}
|
|
|
|
async kill(cs) {
|
|
super.kill(cs);
|
|
this.notifyTaskDone();
|
|
}
|
|
}
|
|
|
|
module.exports = TaskLeave;
|