mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-20 08:40:38 +00:00
added support for conference verb
This commit is contained in:
@@ -17,7 +17,7 @@ class TaskSay extends Task {
|
||||
async exec(cs, ep) {
|
||||
const {srf} = cs;
|
||||
const {synthAudio} = srf.locals.dbHelpers;
|
||||
super.exec(cs);
|
||||
await super.exec(cs);
|
||||
this.ep = ep;
|
||||
try {
|
||||
let filepath;
|
||||
@@ -42,8 +42,8 @@ class TaskSay extends Task {
|
||||
this.emit('playDone');
|
||||
}
|
||||
|
||||
async kill() {
|
||||
super.kill();
|
||||
async kill(cs) {
|
||||
super.kill(cs);
|
||||
if (this.ep.connected) {
|
||||
this.logger.debug('TaskSay:kill - killing audio');
|
||||
await this.ep.api('uuid_break', this.ep.uuid).catch((err) => this.logger.info(err, 'Error killing audio'));
|
||||
|
||||
Reference in New Issue
Block a user