Ignore:
Timestamp:
Nov 4, 2014 8:00:15 AM (9 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/include/pjsua2/account.hpp

    r4939 r4957  
    8282     * occurs because of transport failure, the first retry will be done 
    8383     * after \a firstRetryIntervalSec seconds instead. Also note that 
    84      * the interval will be randomized slightly by approximately +/- ten 
    85      * seconds to avoid all clients re-registering at the same time. 
    86      * 
    87      * See also \a firstRetryIntervalSec setting. 
     84     * the interval will be randomized slightly by some seconds (specified 
     85     * in \a reg_retry_random_interval) to avoid all clients re-registering 
     86     * at the same time. 
     87     * 
     88     * See also \a firstRetryIntervalSec and \a randomRetryIntervalSec 
     89     * settings. 
    8890     * 
    8991     * Default: PJSUA_REG_RETRY_INTERVAL 
     
    9496     * This specifies the interval for the first registration retry. The 
    9597     * registration retry is explained in \a retryIntervalSec. Note that 
    96      * the value here will also be randomized by +/- ten seconds. 
     98     * the value here will also be randomized by some seconds (specified 
     99     * in \a reg_retry_random_interval) to avoid all clients re-registering 
     100     * at the same time. 
     101     * 
     102     * See also \a retryIntervalSec and \a randomRetryIntervalSec settings. 
    97103     * 
    98104     * Default: 0 
    99105     */ 
    100106    unsigned            firstRetryIntervalSec; 
     107 
     108    /** 
     109     * This specifies maximum randomized value to be added/substracted 
     110     * to/from the registration retry interval specified in \a 
     111     * reg_retry_interval and \a reg_first_retry_interval, in second. 
     112     * This is useful to avoid all clients re-registering at the same time. 
     113     * For example, if the registration retry interval is set to 100 seconds 
     114     * and this is set to 10 seconds, the actual registration retry interval 
     115     * will be in the range of 90 to 110 seconds. 
     116     * 
     117     * See also \a retryIntervalSec and \a firstRetryIntervalSec settings. 
     118     * 
     119     * Default: 10 
     120     */ 
     121    unsigned            randomRetryIntervalSec; 
    101122 
    102123    /** 
Note: See TracChangeset for help on using the changeset viewer.