Module: sip-router
Branch: treimann/master_tm-extend-callbacks
Commit: 958328f023cc5a150c7860d98bf5e682a0a5c1e9
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=958328f…
Author: Timo Reimann <sr(a)foo-lounge.de>
Committer: Timo Reimann <sr(a)foo-lounge.de>
Date: Tue Nov 15 00:37:48 2011 +0100
tm: Pass transaction as parameter to callback for CANCEL request.
---
modules/tm/t_cancel.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/tm/t_cancel.c b/modules/tm/t_cancel.c
index 7c225e8..1a37213 100644
--- a/modules/tm/t_cancel.c
+++ b/modules/tm/t_cancel.c
@@ -328,9 +328,9 @@ int cancel_branch( struct cell *t, int branch,
DBG("DEBUG: cancel_branch: sending cancel...\n");
if (SEND_BUFFER( crb )>=0){
if (unlikely (has_tran_tmcbs(t, TMCB_REQUEST_OUT)))
- run_trans_callbacks_with_buf(TMCB_REQUEST_OUT, crb, 0, 0, TMCB_LOCAL_F);
+ run_trans_callbacks_with_buf(TMCB_REQUEST_OUT, crb, t->uas.request, 0,
TMCB_LOCAL_F);
if (unlikely (has_tran_tmcbs(t, TMCB_REQUEST_SENT)))
- run_trans_callbacks_with_buf(TMCB_REQUEST_SENT, crb, 0, 0, TMCB_LOCAL_F);
+ run_trans_callbacks_with_buf(TMCB_REQUEST_SENT, crb, t->uas.request, 0,
TMCB_LOCAL_F);
}
/*sets and starts the FINAL RESPONSE timer */
if (start_retr( crb )!=0)