summaryrefslogtreecommitdiff
path: root/pjsip-apps/src/python
diff options
context:
space:
mode:
authorNanang Izzuddin <nanang@teluu.com>2009-08-11 16:26:20 +0000
committerNanang Izzuddin <nanang@teluu.com>2009-08-11 16:26:20 +0000
commitf61fccd70f181bf9156cd523f7d27812f62db7d7 (patch)
tree5522479e04b655e7a41f5e748a84c55c45f490c6 /pjsip-apps/src/python
parent6f204c13ce8519524eb4da79359ac9b2aea08252 (diff)
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
Diffstat (limited to 'pjsip-apps/src/python')
-rw-r--r--pjsip-apps/src/python/_pjsua.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/pjsip-apps/src/python/_pjsua.h b/pjsip-apps/src/python/_pjsua.h
index 931fcbe6..7147e2ef 100644
--- a/pjsip-apps/src/python/_pjsua.h
+++ b/pjsip-apps/src/python/_pjsua.h
@@ -1734,8 +1734,8 @@ static void PyObj_pjsua_acc_config_import(PyObj_pjsua_acc_config *obj,
obj->contact_uri_params = PyString_FromPJ(&cfg->contact_uri_params);
obj->require_100rel = cfg->require_100rel;
obj->require_timer = cfg->require_timer;
- obj->timer_se = cfg->timer_se;
- obj->timer_min_se = cfg->timer_min_se;
+ obj->timer_se = cfg->timer_setting.sess_expires;
+ obj->timer_min_se = cfg->timer_setting.min_se;
obj->allow_contact_rewrite = cfg->allow_contact_rewrite;
obj->ka_interval = cfg->ka_interval;
Py_XDECREF(obj->ka_data);
@@ -1783,8 +1783,8 @@ static void PyObj_pjsua_acc_config_export(pjsua_acc_config *cfg,
cfg->contact_uri_params = PyString_ToPJ(obj->contact_uri_params);
cfg->require_100rel = obj->require_100rel;
cfg->require_timer = obj->require_timer;
- cfg->timer_se = obj->timer_se;
- cfg->timer_min_se = obj->timer_min_se;
+ cfg->timer_setting.sess_expires = obj->timer_se;
+ cfg->timer_setting.min_se = obj->timer_min_se;
cfg->allow_contact_rewrite = obj->allow_contact_rewrite;
cfg->ka_interval = obj->ka_interval;
cfg->ka_data = PyString_ToPJ(obj->ka_data);