Ignore:
Timestamp:
Jan 20, 2008 2:28:26 PM (12 years ago)
Author:
bennylp
Message:

Ticket #452: renamed SRTP config.h to srtp_config.h, added srtp_err.c to integrate SRTP logging to pjlib, and updated VS6/VS8/Makefile.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/users/nanang/pjsip-apps/src/pjsua/pjsua_app.c

    r1709 r1719  
    474474    pjsua_acc_config *cur_acc; 
    475475    char *config_file = NULL; 
     476    int use_srtp = -1; 
    476477    unsigned i; 
    477478 
     
    800801 
    801802        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) { 
    804805                PJ_LOG(1,(THIS_FILE, "Invalid value for --use-srtp option")); 
    805806                return -1; 
    806807            } 
    807             cur_acc->use_srtp = i; 
    808808            break; 
    809809 
     
    10381038    for (i=0; i<cfg->acc_cnt; ++i) { 
    10391039        pjsua_acc_config *acfg = &cfg->acc_cfg[i]; 
     1040 
     1041        acfg->use_srtp = (pjmedia_srtp_use) use_srtp; 
    10401042 
    10411043        if (acfg->cred_info[acfg->cred_count].username.slen) 
Note: See TracChangeset for help on using the changeset viewer.