diff options
Diffstat (limited to 'pjsip/include/pjsua-lib')
-rw-r--r-- | pjsip/include/pjsua-lib/pjsua.h | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/pjsip/include/pjsua-lib/pjsua.h b/pjsip/include/pjsua-lib/pjsua.h index 4d5fa69a..31c5378b 100644 --- a/pjsip/include/pjsua-lib/pjsua.h +++ b/pjsip/include/pjsua-lib/pjsua.h @@ -3292,8 +3292,9 @@ typedef struct pjsua_acc_config * disable auto re-registration. Note that if the registration retry * occurs because of transport failure, the first retry will be done * after \a reg_first_retry_interval seconds instead. Also note that - * the interval will be randomized slightly by approximately +/- ten - * seconds to avoid all clients re-registering at the same time. + * the interval will be randomized slightly by some seconds (specified + * in \a reg_retry_random_interval) to avoid all clients re-registering + * at the same time. * * See also \a reg_first_retry_interval setting. * @@ -3304,13 +3305,28 @@ typedef struct pjsua_acc_config /** * This specifies the interval for the first registration retry. The * registration retry is explained in \a reg_retry_interval. Note that - * the value here will also be randomized by +/- ten seconds. + * the value here will also be randomized by some seconds (specified + * in \a reg_retry_random_interval) to avoid all clients re-registering + * at the same time. * * Default: 0 */ unsigned reg_first_retry_interval; /** + * This specifies maximum randomized value to be added/substracted + * to/from the registration retry interval specified in \a + * reg_retry_interval and \a reg_first_retry_interval, in second. + * This is useful to avoid all clients re-registering at the same time. + * For example, if the registration retry interval is set to 100 seconds + * and this is set to 10 seconds, the actual registration retry interval + * will be in the range of 90 to 110 seconds. + * + * Default: 10 + */ + unsigned reg_retry_random_interval; + + /** * Specify whether calls of the configured account should be dropped * after registration failure and an attempt of re-registration has * also failed. |