]> sjero.net Git - linphone/commitdiff
Better add call, callee actions dialog, dtmf numpad.
authorGuillaume Beraudo <guillaume.beraudo@belledonne-communications.com>
Thu, 27 Oct 2011 08:43:15 +0000 (10:43 +0200)
committerGuillaume Beraudo <guillaume.beraudo@belledonne-communications.com>
Thu, 27 Oct 2011 08:43:15 +0000 (10:43 +0200)
Prevent situations where several calls use the sound resources
at the same time.

LinphoneCoreImpl.java

index 0e5cfbdb595ae6208d830086aa87c7ae2da41942..7c1f6d90549e3876a50cb23d7d0f8e33cfaf549b 100644 (file)
@@ -590,6 +590,13 @@ class LinphoneCoreImpl implements LinphoneCore {
        }
        @Override
        public boolean isMyself(String uri) {
-               return uri.equals(getDefaultProxyConfig().getIdentity());
+               LinphoneProxyConfig lpc = getDefaultProxyConfig();
+               if (lpc == null) return false;
+               return uri.equals(lpc.getIdentity());
+       }
+
+       private native boolean soundResourcesLocked(long nativePtr);
+       public boolean soundResourcesLocked() {
+               return soundResourcesLocked(nativePtr);
        }
 }