Module: sip-router Branch: master Commit: beb71da826ed6e8b533bb1c62b7e5ff179ed5e6f URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=beb71da8...
Author: Andrei Pelinescu-Onciul andrei@iptel.org Committer: Andrei Pelinescu-Onciul andrei@iptel.org Date: Mon Jul 20 10:21:36 2009 +0200
tmx(k): missing type for mi_tm_uac_dlg callback
sr tm t_uac() does not automatically register any transaction callback (unlike old ser or kamailio versions). If a callback is desired, besides the callback pointer, the callback type mask must also be specified (in this case TMCB_LOCAL_COMPLETED).
---
modules_k/tmx/t_mi.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/modules_k/tmx/t_mi.c b/modules_k/tmx/t_mi.c index 4c73a54..e2fa5b4 100644 --- a/modules_k/tmx/t_mi.c +++ b/modules_k/tmx/t_mi.c @@ -623,6 +623,7 @@ struct mi_root* mi_tm_uac_dlg(struct mi_root* cmd_tree, void* param) { uac_r.cb = mi_uac_dlg_hdl; uac_r.cbp = (void*)cmd_tree->async_hdl; + uac_r.cb_flags = TMCB_LOCAL_COMPLETED; } n = _tmx_tmb.t_uac(&uac_r);