mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-20 16:50:39 +00:00
add support for conference members joining in a muted state
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user