]> sjero.net Git - linphone/blobdiff - java/common/org/linphone/core/LinphoneCore.java
Merge remote-tracking branch 'private/srtp'
[linphone] / java / common / org / linphone / core / LinphoneCore.java
index fcd041dc8a6c5745fef27c0abd5d7ce0aee72f0b..0bea6f60c4d1ffefcf2d611b90b29a466c31600c 100644 (file)
@@ -634,4 +634,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();
 }