Changeset 2867


Ignore:
Timestamp:
Aug 12, 2009 5:28:36 PM (15 years ago)
Author:
bennylp
Message:

Bug fix for ticket #833 (session timer support)

  • bug in verifying --timer-se option in pjsua
File:
1 edited

Legend:

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

    r2864 r2867  
    192192    puts  ("  --use-100rel        Require reliable provisional response (100rel)"); 
    193193    puts  ("  --use-timer         Require SIP session timers"); 
    194     puts  ("  --timer-se          Session timers expiration period, in secs (def:1800)"); 
    195     puts  ("  --timer-min-se      Session timers minimum expiration period, in secs (def:90)"); 
     194    puts  ("  --timer-se=N        Session timers expiration period, in secs (def:1800)"); 
     195    puts  ("  --timer-min-se=N    Session timers minimum expiration period, in secs (def:90)"); 
    196196    puts  ("  --auto-update-nat=N Where N is 0 or 1 to enable/disable SIP traversal behind"); 
    197197    puts  ("                      symmetric NAT (default 1)"); 
     
    840840        case OPT_TIMER_SE: /** session timer session expiration */ 
    841841            cur_acc->timer_setting.sess_expires = pj_strtoul(pj_cstr(&tmp, pj_optarg)); 
    842             if (cur_acc->timer_setting.min_se < 90) { 
     842            if (cur_acc->timer_setting.sess_expires < 90) { 
    843843                PJ_LOG(1,(THIS_FILE,  
    844844                          "Error: invalid value for --timer-se " 
Note: See TracChangeset for help on using the changeset viewer.