Fix daemon command call-mute as well

This commit is contained in:
Sylvain Berfini 2016-05-12 13:19:31 +02:00
parent bf20329191
commit 7e36a186ef

View file

@ -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"