diff options
author | Liong Sauw Ming <ming@teluu.com> | 2011-03-15 03:20:37 +0000 |
---|---|---|
committer | Liong Sauw Ming <ming@teluu.com> | 2011-03-15 03:20:37 +0000 |
commit | ab69db8c96ae19269067fd98e5ff1a046d78a2de (patch) | |
tree | 3849b7cf4c1f21625f0378ccd0d0c048000f256a /pjsip/include | |
parent | 477ebed76f7657565ef181da813ea2f7b409d24b (diff) |
Fixed #1205: Configurable delay before registration refresh setting in pjsua_acc_config
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3441 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip/include')
-rw-r--r-- | pjsip/include/pjsip-ua/sip_regc.h | 14 | ||||
-rw-r--r-- | pjsip/include/pjsua-lib/pjsua.h | 8 |
2 files changed, 22 insertions, 0 deletions
diff --git a/pjsip/include/pjsip-ua/sip_regc.h b/pjsip/include/pjsip-ua/sip_regc.h index a003641a..e448cf6c 100644 --- a/pjsip/include/pjsip-ua/sip_regc.h +++ b/pjsip/include/pjsip-ua/sip_regc.h @@ -190,6 +190,20 @@ PJ_DECL(pj_status_t) pjsip_regc_init(pjsip_regc *regc, const pj_str_t contact[], pj_uint32_t expires); +/** + * Set the number of seconds to refresh the client registration before + * the registration expires. + * + * @param regc The registration structure. + * @param delay The number of seconds to refresh the client + * registration before the registration expires. + * + * @return PJ_SUCCESS on success. + */ +PJ_DECL(pj_status_t) +pjsip_regc_set_delay_before_refresh( pjsip_regc *regc, + pj_uint32_t delay ); + /** * Set authentication credentials to use by this registration. diff --git a/pjsip/include/pjsua-lib/pjsua.h b/pjsip/include/pjsua-lib/pjsua.h index d8243067..f7803175 100644 --- a/pjsip/include/pjsua-lib/pjsua.h +++ b/pjsip/include/pjsua-lib/pjsua.h @@ -2269,6 +2269,14 @@ typedef struct pjsua_acc_config unsigned reg_timeout; /** + * Specify the number of seconds to refresh the client registration + * before the registration expires. + * + * Default: PJSIP_REGISTER_CLIENT_DELAY_BEFORE_REFRESH, 5 seconds + */ + unsigned reg_delay_before_refresh; + + /** * Specify the maximum time to wait for unregistration requests to * complete during library shutdown sequence. * |