[sr-dev] git:kamailio_3.0: tm: set request and reply for TMCB_RESPONSE_SENT

Daniel-Constantin Mierla miconda at gmail.com
Mon Jan 18 12:03:11 CET 2010


Module: sip-router
Branch: kamailio_3.0
Commit: 03ab185bca42e5788eeef5f5c13e02e547c524a1
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=03ab185bca42e5788eeef5f5c13e02e547c524a1

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
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

---

 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 c37db65..9166c18 100644
--- a/modules/tm/t_reply.c
+++ b/modules/tm/t_reply.c
@@ -605,7 +605,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