diff --git a/lib/tasks/conference.js b/lib/tasks/conference.js index c31f73ea..9d260f36 100644 --- a/lib/tasks/conference.js +++ b/lib/tasks/conference.js @@ -114,7 +114,12 @@ class Conference extends Task { } this.emitter.emit('kill'); await this._doFinalMemberCheck(cs); - if (this.ep && this.ep.connected) this.ep.conn.removeAllListeners('esl::event::CUSTOM::*') ; + if (this.ep && this.ep.connected) { + this.ep.conn.removeAllListeners('esl::event::CUSTOM::*'); + this.ep.api(`conference ${this.confName} kick ${this.memberId}`) + .catch((err) => this.logger.info({err}, 'Error kicking participant')); + } + cs.clearConferenceDetails(); this.notifyTaskDone(); }