diff options
author | Benny Prijono <bennylp@teluu.com> | 2011-09-21 07:38:22 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2011-09-21 07:38:22 +0000 |
commit | 1ae52d9602a72858cd1076a8b11bbeaecb1f8165 (patch) | |
tree | 0e9f433749d6a3742b023ee24c7c9688d76d653e /pjsip/include/pjsua-lib/pjsua.h | |
parent | c03b900af9d3c1e4f52540ec580f29b4903f8417 (diff) |
Added option to control first re-registration retry interval. This closes #1375
git-svn-id: http://svn.pjsip.org/repos/pjproject/branches/1.x@3762 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip/include/pjsua-lib/pjsua.h')
-rw-r--r-- | pjsip/include/pjsua-lib/pjsua.h | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/pjsip/include/pjsua-lib/pjsua.h b/pjsip/include/pjsua-lib/pjsua.h index fe8ccc08..40c4e27d 100644 --- a/pjsip/include/pjsua-lib/pjsua.h +++ b/pjsip/include/pjsua-lib/pjsua.h @@ -2519,13 +2519,28 @@ typedef struct pjsua_acc_config /** * Specify interval of auto registration retry upon registration failure * (including caused by transport problem), in second. Set to 0 to - * disable auto re-registration. + * 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. + * + * See also \a reg_first_retry_interval setting. * * Default: #PJSUA_REG_RETRY_INTERVAL */ unsigned reg_retry_interval; /** + * 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. + * + * Default: 0 + */ + unsigned reg_first_retry_interval; + + /** * Specify whether calls of the configured account should be dropped * after registration failure and an attempt of re-registration has * also failed. |