diff --git a/LinphoneCore.java b/LinphoneCore.java index a145c4a68..8609e04e1 100644 --- a/LinphoneCore.java +++ b/LinphoneCore.java @@ -153,6 +153,11 @@ public interface LinphoneCore { * @param isMuted */ public void muteMic(boolean isMuted); + /** + * + * @return true is mic is muted + */ + public boolean isMicMuted(); /** * Build an address according to the current proxy config. In case destination is not a sip uri, the default proxy domain is automatically appended * @param destination diff --git a/LinphoneCoreImpl.java b/LinphoneCoreImpl.java index 12d3707e7..a1087f24d 100644 --- a/LinphoneCoreImpl.java +++ b/LinphoneCoreImpl.java @@ -56,6 +56,7 @@ class LinphoneCoreImpl implements LinphoneCore { private native void inviteAddress(long nativePtr,long to); private native void sendDtmf(long nativePtr,char dtmf); private native void clearCallLogs(long nativePtr); + private native boolean isMicMuted(long nativePtr); LinphoneCoreImpl(LinphoneCoreListener listener, File userConfig,File factoryConfig,Object userdata) throws IOException { @@ -190,4 +191,7 @@ class LinphoneCoreImpl implements LinphoneCore { public void clearCallLogs() { clearCallLogs(nativePtr); } + public boolean isMicMuted() { + return isMicMuted(nativePtr); + } }