[sr-dev] git:tmp/k3.0_sr_backports: tm: set request and reply for TMCB_RESPONSE_SENT

Andrei Pelinescu-Onciul andrei at iptel.org
Mon Feb 1 12:32:30 CET 2010


Module: sip-router
Branch: tmp/k3.0_sr_backports
Commit: c9860c307016ffbff971ab9eb483c04f8de03dd9
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=c9860c307016ffbff971ab9eb483c04f8de03dd9

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Andrei Pelinescu-Onciul <andrei at iptel.org>
Date:   Mon Jan 18 11:59:19 2010 +0100

tm: set request and reply for TMCB_RESPONSE_SENT

- for some reason they were NULL
- affected was sip_trace
- credits to Nguyen Quang Tri fore report and troubleshooting
(cherry picked from commit 03ab185bca42e5788eeef5f5c13e02e547c524a1)

---

 modules/tm/t_reply.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/modules/tm/t_reply.c b/modules/tm/t_reply.c
index 5b09f33..02b03e5 100644
--- a/modules/tm/t_reply.c
+++ b/modules/tm/t_reply.c
@@ -602,7 +602,8 @@ static int _reply_light( struct cell *trans, char* buf, unsigned int len,
 									trans->uas.request, FAKED_REPLY, code);
 #ifdef TMCB_ONSEND
 			if (unlikely(has_tran_tmcbs(trans, TMCB_RESPONSE_SENT))){
-				INIT_TMCB_ONSEND_PARAMS(onsend_params, 0, 0, rb, &rb->dst, 
+				INIT_TMCB_ONSEND_PARAMS(onsend_params, trans->uas.request,
+								FAKED_REPLY, rb, &rb->dst, 
 								buf, len, TMCB_LOCAL_F, rb->branch, code);
 				run_onsend_callbacks2(TMCB_RESPONSE_SENT, trans,
 										&onsend_params);




More information about the sr-dev mailing list