Changeset 1720
- Timestamp:
- Jan 21, 2008 2:25:25 AM (17 years ago)
- Location:
- pjproject/branches/users/nanang
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/users/nanang/pjsip-apps/src/pjsua/pjsua_app.c
r1719 r1720 806 806 return -1; 807 807 } 808 app_config.cfg.use_srtp = use_srtp; 808 809 break; 809 810 -
pjproject/branches/users/nanang/pjsip/include/pjsua-lib/pjsua.h
r1709 r1720 1035 1035 pj_str_t user_agent; 1036 1036 1037 /** 1038 * Specify default value of secure media transport usage. 1039 * Valid values are PJMEDIA_SRTP_DISABLED, PJMEDIA_SRTP_OPTIONAL, and 1040 * PJMEDIA_SRTP_MANDATORY. 1041 * 1042 * Note that this setting can be further customized in account 1043 * configuration (#pjsua_acc_config). 1044 * 1045 * Default: 1046 * PJMEDIA_SRTP_DISABLED 1047 */ 1048 pjmedia_srtp_use use_srtp; 1049 1050 /** 1051 * Specify whether SRTP requires secure signaling to be used. This option 1052 * is only used when \a use_srtp option above is non-zero. 1053 * 1054 * Valid values are: 1055 * 0: SRTP does not require secure signaling 1056 * 1: SRTP requires secure transport such as TLS 1057 * 2: SRTP requires secure end-to-end transport (SIPS) 1058 * 1059 * Note that this setting can be further customized in account 1060 * configuration (#pjsua_acc_config). 1061 * 1062 * Default: 0 1063 */ 1064 int srtp_secure_signaling; 1065 1037 1066 } pjsua_config; 1038 1067 -
pjproject/branches/users/nanang/pjsip/src/pjsua-lib/pjsua_core.c
r1709 r1720 143 143 cfg->ka_interval = 15; 144 144 cfg->ka_data = pj_str("\r\n"); 145 cfg->use_srtp = PJMEDIA_SRTP_DISABLED;146 cfg->srtp_secure_signaling = 0;145 cfg->use_srtp = pjsua_var.ua_cfg.use_srtp; 146 cfg->srtp_secure_signaling = pjsua_var.ua_cfg.srtp_secure_signaling; 147 147 } 148 148 -
pjproject/branches/users/nanang/pjsip/src/pjsua-lib/pjsua_media.c
r1719 r1720 777 777 pjmedia_srtp_setting_default(&srtp_opt); 778 778 srtp_opt.close_member_tp = PJ_FALSE; 779 srtp_opt.use = acc->cfg.use_srtp; 779 780 status = pjmedia_transport_srtp_create(pjsua_var.med_endpt, 780 781 call->med_tp,
Note: See TracChangeset
for help on using the changeset viewer.