Changeset 4042


Ignore:
Timestamp:
Apr 12, 2012 8:53:59 AM (8 years ago)
Author:
nanang
Message:

Re #1474: merged r4041

Location:
pjproject/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk

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

    r4040 r4042  
    994994 
    995995    /* Registration */ 
    996     acc->cfg.reg_timeout = cfg->reg_timeout; 
     996    if (acc->cfg.reg_timeout != cfg->reg_timeout) { 
     997        acc->cfg.reg_timeout = cfg->reg_timeout; 
     998        if (acc->regc != NULL) 
     999            pjsip_regc_update_expires(acc->regc, acc->cfg.reg_timeout); 
     1000 
     1001        update_reg = PJ_TRUE; 
     1002    } 
    9971003    acc->cfg.unreg_timeout = cfg->unreg_timeout; 
    9981004    acc->cfg.allow_contact_rewrite = cfg->allow_contact_rewrite; 
     
    10031009    if (acc->cfg.reg_delay_before_refresh != cfg->reg_delay_before_refresh) { 
    10041010        acc->cfg.reg_delay_before_refresh = cfg->reg_delay_before_refresh; 
    1005         pjsip_regc_set_delay_before_refresh(acc->regc, 
    1006                                             cfg->reg_delay_before_refresh); 
     1011        if (acc->regc != NULL) 
     1012            pjsip_regc_set_delay_before_refresh(acc->regc, 
     1013                                                cfg->reg_delay_before_refresh); 
    10071014    } 
    10081015 
Note: See TracChangeset for help on using the changeset viewer.