Ignore:
Timestamp:
Nov 4, 2014 8:00:15 AM (6 years ago)
Author:
nanang
Message:

Close #1802: Configurable randomized value range for auto re-registration interval.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsua2/account.cpp

    r4939 r4957  
    3939    NODE_READ_UNSIGNED  (this_node, retryIntervalSec); 
    4040    NODE_READ_UNSIGNED  (this_node, firstRetryIntervalSec); 
     41    NODE_READ_UNSIGNED  (this_node, randomRetryIntervalSec); 
    4142    NODE_READ_UNSIGNED  (this_node, delayBeforeRefreshSec); 
    4243    NODE_READ_BOOL      (this_node, dropCallsOnFail); 
     
    5657    NODE_WRITE_UNSIGNED (this_node, retryIntervalSec); 
    5758    NODE_WRITE_UNSIGNED (this_node, firstRetryIntervalSec); 
     59    NODE_WRITE_UNSIGNED (this_node, randomRetryIntervalSec); 
    5860    NODE_WRITE_UNSIGNED (this_node, delayBeforeRefreshSec); 
    5961    NODE_WRITE_BOOL     (this_node, dropCallsOnFail); 
     
    319321    ret.reg_retry_interval      = regConfig.retryIntervalSec; 
    320322    ret.reg_first_retry_interval= regConfig.firstRetryIntervalSec; 
     323    ret.reg_retry_random_interval= regConfig.randomRetryIntervalSec; 
    321324    ret.reg_delay_before_refresh= regConfig.delayBeforeRefreshSec; 
    322325    ret.drop_calls_on_reg_fail  = regConfig.dropCallsOnFail; 
     
    446449    regConfig.retryIntervalSec  = prm.reg_retry_interval; 
    447450    regConfig.firstRetryIntervalSec = prm.reg_first_retry_interval; 
     451    regConfig.randomRetryIntervalSec = prm.reg_retry_random_interval; 
    448452    regConfig.delayBeforeRefreshSec = prm.reg_delay_before_refresh; 
    449453    regConfig.dropCallsOnFail   = PJ2BOOL(prm.drop_calls_on_reg_fail); 
Note: See TracChangeset for help on using the changeset viewer.