From f61fccd70f181bf9156cd523f7d27812f62db7d7 Mon Sep 17 00:00:00 2001 From: Nanang Izzuddin Date: Tue, 11 Aug 2009 16:26:20 +0000 Subject: Ticket #833: - Renamed pjsip_timer_default_setting() to pjsip_timer_setting_default(). - Updated session timer settings in pjsua-lib as whole session timer setting struct (pyhton version remains using se & min_se). - Added output param SIP status code in pjsip_timer_process_resp() and pjsip_timer_process_req() to specify the corresponding SIP status code when function returning non-PJ_SUCCESS. - Fixed print header functions in sip_timer.c to have buffer check. - Added PJSIP_SESS_TIMER_DEF_SE setting to specify the default value of session timer interval. - Fixed role reference of the refresher, it is transaction role, not dialog role. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2859 74dad513-b988-da41-8d7b-12977e46ad98 --- pjsip/include/pjsua-lib/pjsua.h | 30 ++++-------------------------- 1 file changed, 4 insertions(+), 26 deletions(-) (limited to 'pjsip/include/pjsua-lib/pjsua.h') diff --git a/pjsip/include/pjsua-lib/pjsua.h b/pjsip/include/pjsua-lib/pjsua.h index 0b257c7c..43db66ea 100644 --- a/pjsip/include/pjsua-lib/pjsua.h +++ b/pjsip/include/pjsua-lib/pjsua.h @@ -936,22 +936,11 @@ typedef struct pjsua_config pj_bool_t require_timer; /** - * Specify session expiration period of Session Timers, in seconds. + * Specify Session Timer settings, see #pjsip_timer_setting. * 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; + pjsip_timer_setting timer_setting; /** * Number of credentials in the credential array. @@ -1733,20 +1722,9 @@ typedef struct pjsua_acc_config 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) + * Specify Session Timer settings, see #pjsip_timer_setting. */ - unsigned timer_min_se; + pjsip_timer_setting timer_setting; /** * Number of proxies in the proxy array below. -- cgit v1.2.3