Ignore:
Timestamp:
Aug 11, 2009 4:26:20 PM (15 years ago)
Author:
nanang
Message:

Ticket #833:

  • Renamed pjsip_timer_default_setting() to pjsip_timer_setting_default().
  • Updated session timer settings in pjsua-lib as whole session timer setting struct (pyhton version remains using se & min_se).
  • Added output param SIP status code in pjsip_timer_process_resp() and pjsip_timer_process_req() to specify the corresponding SIP status code when function returning non-PJ_SUCCESS.
  • Fixed print header functions in sip_timer.c to have buffer check.
  • Added PJSIP_SESS_TIMER_DEF_SE setting to specify the default value of session timer interval.
  • Fixed role reference of the refresher, it is transaction role, not dialog role.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip-apps/src/pjsua/pjsua_app.c

    r2858 r2859  
    839839 
    840840        case OPT_TIMER_SE: /** session timer session expiration */ 
    841             cur_acc->timer_se = pj_strtoul(pj_cstr(&tmp, pj_optarg)); 
    842             if (cur_acc->timer_se < 90) { 
     841            cur_acc->timer_setting.sess_expires = pj_strtoul(pj_cstr(&tmp, pj_optarg)); 
     842            if (cur_acc->timer_setting.min_se < 90) { 
    843843                PJ_LOG(1,(THIS_FILE,  
    844844                          "Error: invalid value for --timer-se " 
     
    846846                return PJ_EINVAL; 
    847847            } 
    848             cfg->cfg.timer_se = cur_acc->timer_se; 
     848            cfg->cfg.timer_setting.sess_expires = cur_acc->timer_setting.sess_expires; 
    849849            break; 
    850850 
    851851        case OPT_TIMER_MIN_SE: /** session timer minimum session expiration */ 
    852             cur_acc->timer_min_se = pj_strtoul(pj_cstr(&tmp, pj_optarg)); 
    853             if (cur_acc->timer_min_se < 90) { 
     852            cur_acc->timer_setting.min_se = pj_strtoul(pj_cstr(&tmp, pj_optarg)); 
     853            if (cur_acc->timer_setting.min_se < 90) { 
    854854                PJ_LOG(1,(THIS_FILE,  
    855855                          "Error: invalid value for --timer-min-se " 
     
    857857                return PJ_EINVAL; 
    858858            } 
    859             cfg->cfg.timer_min_se = cur_acc->timer_min_se; 
     859            cfg->cfg.timer_setting.min_se = cur_acc->timer_setting.min_se; 
    860860            break; 
    861861 
Note: See TracChangeset for help on using the changeset viewer.