瀏覽代碼

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
Daniel-Constantin Mierla 15 年之前
父節點
當前提交
03ab185bca
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      modules/tm/t_reply.c

+ 2 - 1
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);