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: https://svn.pjsip.org/repos/pjproject/trunk@3138 74dad513-b988-da41-8d7b-12977e46ad98
diff --git a/pjsip/src/pjsua-lib/pjsua_core.c b/pjsip/src/pjsua-lib/pjsua_core.c
index f25d2e5..dd89237 100644
--- a/pjsip/src/pjsua-lib/pjsua_core.c
+++ b/pjsip/src/pjsua-lib/pjsua_core.c
@@ -1889,11 +1889,11 @@
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);
}
}