mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2026-03-21 18:57:53 +00:00
fix: conference mute and mute status (#1218)
This commit is contained in:
@@ -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':
|
||||
|
||||
@@ -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'});
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user