- Timestamp:
- Jan 20, 2008 2:28:26 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/users/nanang/pjsip-apps/src/pjsua/pjsua_app.c
r1709 r1719 474 474 pjsua_acc_config *cur_acc; 475 475 char *config_file = NULL; 476 int use_srtp = -1; 476 477 unsigned i; 477 478 … … 800 801 801 802 case OPT_USE_SRTP: 802 i= my_atoi(pj_optarg);803 if (!pj_isdigit(*pj_optarg) || i> 2) {803 use_srtp = my_atoi(pj_optarg); 804 if (!pj_isdigit(*pj_optarg) || use_srtp > 2) { 804 805 PJ_LOG(1,(THIS_FILE, "Invalid value for --use-srtp option")); 805 806 return -1; 806 807 } 807 cur_acc->use_srtp = i;808 808 break; 809 809 … … 1038 1038 for (i=0; i<cfg->acc_cnt; ++i) { 1039 1039 pjsua_acc_config *acfg = &cfg->acc_cfg[i]; 1040 1041 acfg->use_srtp = (pjmedia_srtp_use) use_srtp; 1040 1042 1041 1043 if (acfg->cred_info[acfg->cred_count].username.slen)
Note: See TracChangeset
for help on using the changeset viewer.