diff options
author | Liong Sauw Ming <ming@teluu.com> | 2011-03-15 03:20:37 +0000 |
---|---|---|
committer | Liong Sauw Ming <ming@teluu.com> | 2011-03-15 03:20:37 +0000 |
commit | ab69db8c96ae19269067fd98e5ff1a046d78a2de (patch) | |
tree | 3849b7cf4c1f21625f0378ccd0d0c048000f256a /pjsip-apps/src | |
parent | 477ebed76f7657565ef181da813ea2f7b409d24b (diff) |
Fixed #1205: Configurable delay before registration refresh setting in pjsua_acc_config
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3441 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip-apps/src')
-rw-r--r-- | pjsip-apps/src/python/_pjsua.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/pjsip-apps/src/python/_pjsua.h b/pjsip-apps/src/python/_pjsua.h index 754066a4..dd70f14e 100644 --- a/pjsip-apps/src/python/_pjsua.h +++ b/pjsip-apps/src/python/_pjsua.h @@ -1658,6 +1658,7 @@ typedef struct PyObject *force_contact; PyListObject *proxy; unsigned reg_timeout; + unsigned reg_delay_before_refresh; PyListObject *cred_info; int transport_id; int auth_initial_send; @@ -1720,6 +1721,7 @@ static void PyObj_pjsua_acc_config_import(PyObj_pjsua_acc_config *obj, } obj->reg_timeout = cfg->reg_timeout; + obj->reg_delay_before_refresh = cfg->reg_delay_before_refresh; Py_XDECREF(obj->cred_info); obj->cred_info = (PyListObject *)PyList_New(0); @@ -1776,6 +1778,7 @@ static void PyObj_pjsua_acc_config_export(pjsua_acc_config *cfg, } cfg->reg_timeout = obj->reg_timeout; + cfg->reg_delay_before_refresh = obj->reg_delay_before_refresh; cfg->cred_count = PyList_Size((PyObject*)obj->cred_info); if (cfg->cred_count > PJ_ARRAY_SIZE(cfg->cred_info)) @@ -1899,6 +1902,13 @@ static PyMemberDef PyObj_pjsua_acc_config_members[] = "(PJSUA_REG_INTERVAL, 55 seconds). " }, { + "reg_delay_before_refresh", T_INT, + offsetof(PyObj_pjsua_acc_config, reg_delay_before_refresh), 0, + "Specify the number of seconds to refresh the client registration" + "before the registration expires." + "(PJSIP_REGISTER_CLIENT_DELAY_BEFORE_REFRESH, 5 seconds). " + }, + { "cred_info", T_OBJECT_EX, offsetof(PyObj_pjsua_acc_config, cred_info), 0, "Array of credentials. If registration is desired, normally there " |