Ignore:
Timestamp:
Mar 15, 2011 10:49:59 AM (11 years ago)
Author:
ming
Message:

Re #1205: If refresh timer is already running, it will be cancelled and rescheduled with the new delay. This can be useful if app wants to correct the delay after it checks the timeout in the callback.

File:
1 edited

Legend:

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

    r3441 r3444  
    946946    /* Registration */ 
    947947    acc->cfg.reg_timeout = cfg->reg_timeout; 
    948     acc->cfg.reg_delay_before_refresh = cfg->reg_delay_before_refresh; 
    949948    acc->cfg.unreg_timeout = cfg->unreg_timeout; 
    950949    acc->cfg.allow_contact_rewrite = cfg->allow_contact_rewrite; 
    951950    acc->cfg.reg_retry_interval = cfg->reg_retry_interval; 
    952951    acc->cfg.drop_calls_on_reg_fail = cfg->drop_calls_on_reg_fail; 
     952    if (acc->cfg.reg_delay_before_refresh != cfg->reg_delay_before_refresh) { 
     953        acc->cfg.reg_delay_before_refresh = cfg->reg_delay_before_refresh; 
     954        pjsip_regc_set_delay_before_refresh(acc->regc, 
     955                                            cfg->reg_delay_before_refresh); 
     956    } 
    953957 
    954958    /* Normalize registration timeout and refresh delay */ 
Note: See TracChangeset for help on using the changeset viewer.