fix: conference mute and mute status (#1218)

This commit is contained in:
Anton Voylenko
2026-03-12 13:55:49 +02:00
committed by GitHub
parent 1560efaf03
commit 68339ced0b
2 changed files with 5 additions and 3 deletions

View File

@@ -2315,7 +2315,8 @@ Duration=${duration} `
break;
case 'mute:status':
this._lccMuteStatus(data, call_sid);
const status = typeof (data) === 'string' ? data : data.mute_status;
this._lccMuteStatus(status === 'mute', call_sid);
break;
case 'conf:mute-status':

View File

@@ -469,6 +469,7 @@ class Conference extends Task {
assert (cs.isInConference);
const mute = opts.conf_mute_status === 'mute';
this.logger.info(`Conference:doConferenceMute ${mute ? 'muting' : 'unmuting'} member`);
this.ep.api(`conference ${this.confName} ${mute ? 'mute' : 'unmute'} ${this.memberId}`)
.catch((err) => this.logger.info({err}, 'Error muting or unmuting participant'));
}
@@ -570,8 +571,8 @@ class Conference extends Task {
/**
* mute or unmute side of the call
*/
mute(callSid, doMute) {
this.doConferenceMute(this.callSession, {conf_mute_status: doMute});
async mute(callSid, doMute) {
this.doConferenceMute(this.callSession, {conf_mute_status: doMute ? 'mute' : 'unmute'});
}
/**