diff options
author | Benny Prijono <bennylp@teluu.com> | 2009-10-14 01:58:04 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2009-10-14 01:58:04 +0000 |
commit | 2dd0fe09ceb1675de340d5d4ff84251b3697b435 (patch) | |
tree | 57bbbf8f79d24d908bc2aae95d9134e3cd37d72e /pjsip/include | |
parent | b2aac52d83d6e4fb46e2bef723647fa2bb1ad8be (diff) |
Ticket #970: More gracefull PJSUA-LIB shutdown sequence. Enhancements:
- wait for unregistration to complete (or a preconfigured delay expires)
- new account config field to set the maximum delay to wait for unregistration
- rejects incoming requests (INVITE, SUBSCRIBE, and OPTIONS) when shutdown is in progress
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2943 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip/include')
-rw-r--r-- | pjsip/include/pjsua-lib/pjsua.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/pjsip/include/pjsua-lib/pjsua.h b/pjsip/include/pjsua-lib/pjsua.h index d6db65b9..c0eb8b25 100644 --- a/pjsip/include/pjsua-lib/pjsua.h +++ b/pjsip/include/pjsua-lib/pjsua.h @@ -1725,6 +1725,17 @@ PJ_DECL(pj_status_t) pjsua_transport_close( pjsua_transport_id id, /** + * Default maximum time to wait for account unregistration transactions to + * complete during library shutdown sequence. + * + * Default: 4000 (4 seconds) + */ +#ifndef PJSUA_UNREG_TIMEOUT +# define PJSUA_UNREG_TIMEOUT 4000 +#endif + + +/** * Default PUBLISH expiration */ #ifndef PJSUA_PUBLISH_EXPIRATION @@ -1919,6 +1930,14 @@ typedef struct pjsua_acc_config */ unsigned reg_timeout; + /** + * Specify the maximum time to wait for unregistration requests to + * complete during library shutdown sequence. + * + * Default: PJSUA_UNREG_TIMEOUT + */ + unsigned unreg_timeout; + /** * Number of credentials in the credential array. */ |