]> sjero.net Git - linphone/blobdiff - java/common/org/linphone/core/LinphoneCore.java
Merge branch 'master' of git.linphone.org:linphone
[linphone] / java / common / org / linphone / core / LinphoneCore.java
index 249dff5587774f8860fe9160fa6caf34926f5a87..944fa026d2f5f3956ab6c7fd7442733b550edfba 100644 (file)
@@ -635,4 +635,22 @@ public interface LinphoneCore {
         * @return
         */
        boolean soundResourcesLocked();
+       /**
+        * set media encryption (rtp) to use
+        * @params menc: 'none', 'srtp' or 'zrtp'
+        */
+       void setMediaEncryption(String menc);
+       /**
+        * return selected media encryption
+        * @return 'none', 'srtp' or 'zrtp'
+        */
+       String getMediaEncryption();
+/**
+        * Set media encryption required for outgoing calls
+        */
+       void setMediaEncryptionMandatory(boolean yesno);
+       /**
+        * @return if media encryption is required for ougtoing calls
+        */
+       boolean isMediaEncryptionMandatory();
 }