From 6f204c13ce8519524eb4da79359ac9b2aea08252 Mon Sep 17 00:00:00 2001 From: Nanang Izzuddin Date: Tue, 11 Aug 2009 12:42:38 +0000 Subject: 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 --- pjsip/include/pjsua-lib/pjsua.h | 51 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) (limited to 'pjsip/include/pjsua-lib') 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. */ @@ -1697,6 +1724,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. */ -- cgit v1.2.3