Changeset 5746 for pjproject/trunk/pjsip-apps/src/pjsua/pjsua_app_config.c
- Timestamp:
- Feb 26, 2018 7:50:18 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip-apps/src/pjsua/pjsua_app_config.c
r5701 r5746 192 192 puts (" --turn-user TURN username"); 193 193 puts (" --turn-passwd TURN password"); 194 #if defined(PJMEDIA_HAS_SRTP) && (PJMEDIA_HAS_SRTP != 0) 195 puts (" --srtp-keying SRTP keying method for outgoing SDP offer."); 196 puts (" 0=SDES (default), 1=DTLS"); 197 #endif 194 198 195 199 puts (""); … … 356 360 OPT_USE_ICE, OPT_ICE_REGULAR, OPT_USE_SRTP, OPT_SRTP_SECURE, 357 361 OPT_USE_TURN, OPT_ICE_MAX_HOSTS, OPT_ICE_NO_RTCP, OPT_TURN_SRV, 358 OPT_TURN_TCP, OPT_TURN_USER, OPT_TURN_PASSWD, 362 OPT_TURN_TCP, OPT_TURN_USER, OPT_TURN_PASSWD, OPT_SRTP_KEYING, 359 363 OPT_PLAY_FILE, OPT_PLAY_TONE, OPT_RTP_PORT, OPT_ADD_CODEC, 360 364 OPT_ILBC_MODE, OPT_REC_FILE, OPT_AUTO_REC, … … 453 457 { "use-srtp", 1, 0, OPT_USE_SRTP}, 454 458 { "srtp-secure",1, 0, OPT_SRTP_SECURE}, 459 { "srtp-keying",1, 0, OPT_SRTP_KEYING}, 455 460 #endif 456 461 { "add-codec", 1, 0, OPT_ADD_CODEC}, … … 1042 1047 cur_acc->srtp_secure_signaling = app_config.cfg.srtp_secure_signaling; 1043 1048 break; 1049 case OPT_SRTP_KEYING: 1050 app_config.srtp_keying = my_atoi(pj_optarg); 1051 if (!pj_isdigit(*pj_optarg) || app_config.srtp_keying < 0 || 1052 app_config.srtp_keying > 1) 1053 { 1054 PJ_LOG(1,(THIS_FILE, "Invalid value for --srtp-keying option")); 1055 return -1; 1056 } 1057 break; 1044 1058 #endif 1045 1059 … … 1926 1940 pj_strcat2(&cfg, line); 1927 1941 } 1942 if (app_config.srtp_keying >= 0 && app_config.srtp_keying <= 1) 1943 { 1944 pj_ansi_sprintf(line, "--srtp-keying %d\n", 1945 app_config.srtp_keying); 1946 pj_strcat2(&cfg, line); 1947 } 1928 1948 #endif 1929 1949
Note: See TracChangeset
for help on using the changeset viewer.