Skip to content
Snippets Groups Projects
Commit 7f2cc9fd authored by Pierre Lespagnol's avatar Pierre Lespagnol Committed by Adrien Béraud
Browse files

conference: check mute state before add participant

Change-Id: I9e9c130048c1625ed5acdff2ec9057cf0ef15c0f
parent d55fcd8d
Branches
No related tags found
No related merge requests found
......@@ -184,6 +184,14 @@ void
Conference::add(const std::string& participant_id)
{
if (participants_.insert(participant_id).second) {
// Check if participant was muted before conference
if (auto call = Manager::instance().callFactory.getCall<SIPCall>(participant_id)) {
if (call->isPeerMuted()) {
auto uri = call->getPeerNumber();
uri = string_remove_suffix(uri, '@');
participantsMuted_.emplace(uri);
}
}
#ifdef ENABLE_VIDEO
if (auto call = Manager::instance().callFactory.getCall<SIPCall>(participant_id)) {
call->getVideoRtp().enterConference(this);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment