Ignore:
Timestamp:
Nov 17, 2016 3:02:41 AM (8 years ago)
Author:
ming
Message:

Re #1945 (misc): Normalize account config's unregistration timeout when adding account.

Thanks to Johan Lantz for the report.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsua-lib/pjsua_acc.c

    r5455 r5484  
    436436    pjsua_acc_config_dup(acc->pool, &pjsua_var.acc[id].cfg, cfg); 
    437437     
    438     /* Normalize registration timeout and refresh delay */ 
     438    /* Normalize registration (and unreg) timeout and refresh delay */ 
    439439    if (pjsua_var.acc[id].cfg.reg_uri.slen) { 
    440440        if (pjsua_var.acc[id].cfg.reg_timeout == 0) { 
     
    444444            pjsua_var.acc[id].cfg.reg_delay_before_refresh = 
    445445                PJSIP_REGISTER_CLIENT_DELAY_BEFORE_REFRESH; 
     446        } 
     447        if (pjsua_var.acc[id].cfg.unreg_timeout == 0) { 
     448            pjsua_var.acc[id].cfg.unreg_timeout = PJSUA_UNREG_TIMEOUT; 
    446449        } 
    447450    } 
Note: See TracChangeset for help on using the changeset viewer.