- Timestamp:
- Jan 18, 2008 6:49:29 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/users/nanang/pjsip-apps/src/pjsua/pjsua_app.c
r1698 r1709 121 121 puts ("SIP Account options:"); 122 122 puts (" --use-ims Enable 3GPP/IMS related settings on this account"); 123 puts (" --use-srtp=N Use SRTP N= 0: disabled, 1: optional, 2: mandatory"); 123 124 puts (" --registrar=url Set the URL of registrar server"); 124 125 puts (" --id=url Set the URL of local ID (used in From header)"); … … 166 167 puts ("Media Options:"); 167 168 puts (" --use-ice Enable ICE (default:no)"); 168 puts (" --use-srtp Enable SRTP (default:no)");169 169 puts (" --add-codec=name Manually add codec (default is to enable all)"); 170 170 puts (" --dis-codec=name Disable codec (can be specified multiple times)"); … … 443 443 { "rtp-port", 1, 0, OPT_RTP_PORT}, 444 444 { "use-ice", 0, 0, OPT_USE_ICE}, 445 { "use-srtp", 0, 0, OPT_USE_SRTP},445 { "use-srtp", 1, 0, OPT_USE_SRTP}, 446 446 { "add-codec", 1, 0, OPT_ADD_CODEC}, 447 447 { "dis-codec", 1, 0, OPT_DIS_CODEC}, … … 800 800 801 801 case OPT_USE_SRTP: 802 cfg->media_cfg.enable_srtp = PJ_TRUE; 802 i = my_atoi(pj_optarg); 803 if (!pj_isdigit(*pj_optarg) || i > 2) { 804 PJ_LOG(1,(THIS_FILE, "Invalid value for --use-srtp option")); 805 return -1; 806 } 807 cur_acc->use_srtp = i; 803 808 break; 804 809 … … 1115 1120 pj_ansi_sprintf(line, "--auto-update-nat %i\n", 1116 1121 (int)acc_cfg->auto_update_nat); 1122 pj_strcat2(result, line); 1123 } 1124 1125 /* SRTP */ 1126 if (acc_cfg->use_srtp) { 1127 pj_ansi_sprintf(line, "--use-srtp %i\n", 1128 (int)acc_cfg->use_srtp); 1117 1129 pj_strcat2(result, line); 1118 1130 }
Note: See TracChangeset
for help on using the changeset viewer.