Переглянути джерело

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)
Daniel-Constantin Mierla 15 роки тому
батько
коміт
c9860c3070
1 змінених файлів з 2 додано та 1 видалено
  1. 2 1
      modules/tm/t_reply.c

+ 2 - 1
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);
 									trans->uas.request, FAKED_REPLY, code);
 #ifdef TMCB_ONSEND
 #ifdef TMCB_ONSEND
 			if (unlikely(has_tran_tmcbs(trans, TMCB_RESPONSE_SENT))){
 			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);
 								buf, len, TMCB_LOCAL_F, rb->branch, code);
 				run_onsend_callbacks2(TMCB_RESPONSE_SENT, trans,
 				run_onsend_callbacks2(TMCB_RESPONSE_SENT, trans,
 										&onsend_params);
 										&onsend_params);