diff --git a/MumbleCommunicator.cpp b/MumbleCommunicator.cpp index 4915e5e..f52511b 100644 --- a/MumbleCommunicator.cpp +++ b/MumbleCommunicator.cpp @@ -79,14 +79,18 @@ void mumble::MumbleCommunicator::sendTextMessage(std::string message) { void mumble::MumbleCommunicator::joinChannel(int channel_id) { mum->joinChannel(channel_id); if ( mumbleConf.autodeaf ) { - mum->self_mute(1); + //mum->self_mute(1); mum->self_deaf(1); } } void mumble::MumbleCommunicator::mutedeaf(int status) { if ( mumbleConf.autodeaf ) { - mum->self_mute(status); - mum->self_deaf(status); + if ( status ) { + mum->self_deaf(status); + } else { + mum->self_mute(status); + } } } + diff --git a/PjsuaCommunicator.cpp b/PjsuaCommunicator.cpp index 6b98d21..a4c3cd4 100644 --- a/PjsuaCommunicator.cpp +++ b/PjsuaCommunicator.cpp @@ -145,6 +145,7 @@ namespace sip { communicator.logger.notice(msgText); communicator.onStateChange(msgText); communicator.onMuteDeafChange(0); + } else if (ci.state == PJSIP_INV_STATE_DISCONNECTED) { auto &acc = dynamic_cast<_Account &>(account);