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:
@@ -14,7 +14,7 @@ class TaskPlay extends Task {
|
||||
get name() { return TaskName.Play; }
|
||||
|
||||
async exec(cs, ep) {
|
||||
super.exec(cs);
|
||||
await super.exec(cs);
|
||||
this.ep = ep;
|
||||
try {
|
||||
while (!this.killed && this.loop--) {
|
||||
@@ -26,8 +26,8 @@ class TaskPlay extends Task {
|
||||
this.emit('playDone');
|
||||
}
|
||||
|
||||
async kill() {
|
||||
super.kill();
|
||||
async kill(cs) {
|
||||
super.kill(cs);
|
||||
if (this.ep.connected && !this.playComplete) {
|
||||
this.logger.debug('TaskPlay: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