summaryrefslogtreecommitdiff
path: root/pjsip/src/pjsua-lib/pjsua_core.c
diff options
context:
space:
mode:
authorNanang Izzuddin <nanang@teluu.com>2010-04-14 06:57:35 +0000
committerNanang Izzuddin <nanang@teluu.com>2010-04-14 06:57:35 +0000
commit3e4dd6d305b65dcd7db9a1d8f36d7f5dcc1b6938 (patch)
tree225967cd5f010b59b68a191a7888c0e9ca7cb2a7 /pjsip/src/pjsua-lib/pjsua_core.c
parentccfb2e74fd1223e7bee765d1d0fbaece6e507deb (diff)
Ticket #1056:
- Added functions to set/unset transport state notification callback on specific transport. - Updated transaction to immediately terminate the transactions when their transport gets disconnected. - Minor update: renamed function pjsip_tpmgr_set/get_status_cb() to pjsip_tpmgr_set/get_state_cb(). git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3138 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip/src/pjsua-lib/pjsua_core.c')
-rw-r--r--pjsip/src/pjsua-lib/pjsua_core.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pjsip/src/pjsua-lib/pjsua_core.c b/pjsip/src/pjsua-lib/pjsua_core.c
index f25d2e51..dd892373 100644
--- a/pjsip/src/pjsua-lib/pjsua_core.c
+++ b/pjsip/src/pjsua-lib/pjsua_core.c
@@ -1889,11 +1889,11 @@ PJ_DEF(pj_status_t) pjsua_transport_create( pjsip_transport_type_e type,
pjsip_tpmgr *tpmgr;
tpmgr = pjsip_endpt_get_tpmgr(pjsua_var.endpt);
- tpcb = pjsip_tpmgr_get_status_cb(tpmgr);
+ tpcb = pjsip_tpmgr_get_state_cb(tpmgr);
if (tpcb != &on_tp_state_callback) {
pjsua_var.old_tp_cb = tpcb;
- pjsip_tpmgr_set_status_cb(tpmgr, &on_tp_state_callback);
+ pjsip_tpmgr_set_state_cb(tpmgr, &on_tp_state_callback);
}
}