diff options
author | Nanang Izzuddin <nanang@teluu.com> | 2009-08-11 12:42:38 +0000 |
---|---|---|
committer | Nanang Izzuddin <nanang@teluu.com> | 2009-08-11 12:42:38 +0000 |
commit | 6f204c13ce8519524eb4da79359ac9b2aea08252 (patch) | |
tree | fd03248a6aa6c121822cbca2507113cf5b86b0f0 /pjsip/include/pjsua-lib/pjsua.h | |
parent | 04fbadef1554da3b61c412e030081d1f05c6a99a (diff) |
Ticket #833:
- Initial version of Session Timers (RFC 4028).
- Added new options in pjsua app to configure Session Timers settings.
- Added python tests for Session Timers.
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2858 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip/include/pjsua-lib/pjsua.h')
-rw-r--r-- | pjsip/include/pjsua-lib/pjsua.h | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/pjsip/include/pjsua-lib/pjsua.h b/pjsip/include/pjsua-lib/pjsua.h index e06019d9..0b257c7c 100644 --- a/pjsip/include/pjsua-lib/pjsua.h +++ b/pjsip/include/pjsua-lib/pjsua.h @@ -926,6 +926,33 @@ typedef struct pjsua_config */ pj_bool_t require_100rel; + /** + * Specify whether support for Session Timers should be required by + * default. Note that this setting can be further customized in account + * configuration (#pjsua_acc_config). + * + * Default: PJ_FALSE + */ + pj_bool_t require_timer; + + /** + * Specify session expiration period of Session Timers, in seconds. + * Note that this setting can be further customized in account + * configuration (#pjsua_acc_config). + * + * Default: 1800 (seconds) + */ + unsigned timer_se; + + /** + * Specify minimum session expiration period of Session Timers, + * in seconds. Note that this setting can be further customized in + * account configuration (#pjsua_acc_config). + * + * Default: 90 (seconds) + */ + unsigned timer_min_se; + /** * Number of credentials in the credential array. */ @@ -1698,6 +1725,30 @@ typedef struct pjsua_acc_config pj_bool_t require_100rel; /** + * Specify whether support for Session Timers should be required for all + * sessions of this account. + * + * Default: PJ_FALSE + */ + pj_bool_t require_timer; + + /** + * Specify session expiration period of Session Timers, in seconds, + * for this account. + * + * Default: 1800 (seconds) + */ + unsigned timer_se; + + /** + * Specify minimum session expiration period of Session Timers, + * in seconds, for this account. + * + * Default: 90 (seconds) + */ + unsigned timer_min_se; + + /** * Number of proxies in the proxy array below. */ unsigned proxy_cnt; |