From 5f1ab1680a69eeec6df4a7cc3ef2d55b50d6474b Mon Sep 17 00:00:00 2001 From: Sandrine Avakian Date: Mon, 14 Mar 2016 17:09:16 +0100 Subject: [PATCH] Replacing deprecated mute function. --- coreapi/linphonecore_jni.cc | 2 +- daemon/commands/call-mute.cc | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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"