Re #1069:
- Added new approach of SRTP optional mode in pjsua-lib by duplicating SDP media line for secured and unsecured version of media transport.
- Integrated this feature into pjsua app, it is activated via --use-srtp=3 param.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3172 74dad513-b988-da41-8d7b-12977e46ad98
diff --git a/pjsip/include/pjsua-lib/pjsua.h b/pjsip/include/pjsua-lib/pjsua.h
index 5d22808..58574e9 100644
--- a/pjsip/include/pjsua-lib/pjsua.h
+++ b/pjsip/include/pjsua-lib/pjsua.h
@@ -1083,6 +1083,16 @@
* Default: #PJSUA_DEFAULT_SRTP_SECURE_SIGNALING
*/
int srtp_secure_signaling;
+
+ /**
+ * Specify whether SRTP in PJMEDIA_SRTP_OPTIONAL mode should compose
+ * duplicated media in SDP offer, i.e: unsecured and secured version.
+ * Otherwise, the SDP media will be composed as unsecured media but
+ * with SDP "crypto" attribute.
+ *
+ * Default: PJ_FALSE
+ */
+ pj_bool_t srtp_optional_dup_offer;
#endif
/**
@@ -2126,6 +2136,16 @@
* Default: #PJSUA_DEFAULT_SRTP_SECURE_SIGNALING
*/
int srtp_secure_signaling;
+
+ /**
+ * Specify whether SRTP in PJMEDIA_SRTP_OPTIONAL mode should compose
+ * duplicated media in SDP offer, i.e: unsecured and secured version.
+ * Otherwise, the SDP media will be composed as unsecured media but
+ * with SDP "crypto" attribute.
+ *
+ * Default: PJ_FALSE
+ */
+ pj_bool_t srtp_optional_dup_offer;
#endif
/**