diff --git a/coreapi/linphonecore_jni.cc b/coreapi/linphonecore_jni.cc index 434d5f75b..f4ce1ff1b 100644 --- a/coreapi/linphonecore_jni.cc +++ b/coreapi/linphonecore_jni.cc @@ -1749,7 +1749,7 @@ extern "C" void Java_org_linphone_core_LinphoneCoreImpl_muteMic( JNIEnv* env ,jobject thiz ,jlong lc ,jboolean isMuted) { - linphone_core_mute_mic((LinphoneCore*)lc,isMuted); + linphone_core_enable_mic((LinphoneCore*)lc,isMuted); } extern "C" jlong Java_org_linphone_core_LinphoneCoreImpl_interpretUrl( JNIEnv* env diff --git a/daemon/commands/call-mute.cc b/daemon/commands/call-mute.cc index 33e44beb9..c5f79b2b6 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_mute_mic(lc, (muted != 0)); + linphone_core_enable_mic(lc, (muted != 0)); } else { - linphone_core_mute_mic(lc, (muted != 0)); + linphone_core_enable_mic(lc, (muted != 0)); } app->sendResponse(Response(muted?"Microphone Muted"