summaryrefslogtreecommitdiff
path: root/pjsip/include/pjsua-lib
diff options
context:
space:
mode:
authorNanang Izzuddin <nanang@teluu.com>2010-05-13 05:22:51 +0000
committerNanang Izzuddin <nanang@teluu.com>2010-05-13 05:22:51 +0000
commitf2d5263f261f4d2a1b714b3b91cc4229b86ad01d (patch)
treed0375502497c339d98dbd1def51c5985148a82ef /pjsip/include/pjsua-lib
parentdaa17786030e9fc8967d01228f453004ae7177f0 (diff)
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: http://svn.pjsip.org/repos/pjproject/trunk@3172 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip/include/pjsua-lib')
-rw-r--r--pjsip/include/pjsua-lib/pjsua.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/pjsip/include/pjsua-lib/pjsua.h b/pjsip/include/pjsua-lib/pjsua.h
index 5d228083..58574e92 100644
--- a/pjsip/include/pjsua-lib/pjsua.h
+++ b/pjsip/include/pjsua-lib/pjsua.h
@@ -1083,6 +1083,16 @@ typedef struct pjsua_config
* 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 @@ typedef struct pjsua_acc_config
* 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
/**