diff --git a/daemon/commands/call-mute.cc b/daemon/commands/call-mute.cc index c5f79b2b6..918552159 100644 --- a/daemon/commands/call-mute.cc +++ b/daemon/commands/call-mute.cc @@ -29,9 +29,9 @@ void CallMute::exec(Daemon* app, const char* args) } if (sscanf(args, "%i", &muted) == 1) { - linphone_core_enable_mic(lc, (muted != 0)); + linphone_core_enable_mic(lc, !muted); } else { - linphone_core_enable_mic(lc, (muted != 0)); + linphone_core_enable_mic(lc, !muted); } app->sendResponse(Response(muted?"Microphone Muted"