mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-20 08:40:38 +00:00
LCC: add support for conf_hold_status to hold/unhold a participant in a conference
This commit is contained in:
@@ -375,6 +375,24 @@ class Conference extends Task {
|
||||
this.emitter.emit('join', opts);
|
||||
}
|
||||
|
||||
async mute(callSid, muted) {
|
||||
if (this.memberId) {
|
||||
const prop = muted === true ? 'mute' : 'unmute';
|
||||
this.ep.api(`conference ${this.confName} ${prop} ${this.memberId}`)
|
||||
.catch((err) => this.logger.info({err}, `Error ${prop} participant`));
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
async deaf(callSid, deafed) {
|
||||
if (this.memberId) {
|
||||
const prop = deafed === true ? 'deaf' : 'undeaf';
|
||||
this.ep.api(`conference ${this.confName} ${prop} ${this.memberId}`)
|
||||
.catch((err) => this.logger.info({err}, `Error ${prop} participant`));
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Add ourselves to the waitlist of sessions to be notified once
|
||||
* the conference starts
|
||||
|
||||
Reference in New Issue
Block a user