mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-20 16:50:39 +00:00
docs
This commit is contained in:
@@ -10,7 +10,9 @@ function makeTask(logger, obj) {
|
||||
const name = keys[0];
|
||||
const data = obj[name];
|
||||
logger.debug(data, `makeTask: ${name}`);
|
||||
if (typeof data !== 'object') throw errBadInstruction;
|
||||
if (typeof data !== 'object') {
|
||||
throw errBadInstruction;
|
||||
}
|
||||
Task.validate(name, data);
|
||||
switch (name) {
|
||||
case TaskName.SipDecline:
|
||||
|
||||
@@ -38,6 +38,7 @@ class TaskSay extends Task {
|
||||
}
|
||||
|
||||
kill() {
|
||||
super.kill();
|
||||
if (this.ep.connected && !this.sayComplete) {
|
||||
this.logger.debug('TaskSay:kill - killing audio');
|
||||
this.ep.api('uuid_break', this.ep.uuid).catch((err) => this.logger.info(err, 'Error killing audio'));
|
||||
|
||||
Reference in New Issue
Block a user