add support for conference members joining in a muted state

This commit is contained in:
Dave Horton
2021-09-25 13:50:16 -04:00
parent 708c13d5f6
commit 4c61ae5fbd
3 changed files with 12 additions and 7 deletions

View File

@@ -468,12 +468,12 @@ class CallSession extends Emitter {
task.doConferenceHold(this, opts);
}
async _lccConfMute(callSid, mute) {
async _lccConfMuteStatus(callSid, opts) {
const task = this.currentTask;
if (!task || TaskName.Conference !== task.name || !this.isInConference) {
return this.logger.info('CallSession:_lccConfMute - invalid command as call is not in conference');
return this.logger.info('CallSession:_lccConfHoldStatus - invalid command as call is not in conference');
}
task.doConferenceMuteNonModerators(this, mute);
task.doConferenceMuteNonModerators(this, opts);
}
/**
@@ -548,8 +548,8 @@ class CallSession extends Emitter {
else if (opts.conf_hold_status) {
await this._lccConfHoldStatus(callSid, opts);
}
else if ('mute_conference' in opts) {
await this._lccConfMute(callSid, opts.mute_conference);
else if (opts.conf_mute_status) {
await this._lccConfMuteStatus(callSid, opts);
}
// whisper may be the only thing we are asked to do, or it may that