Browse code

Merge pull request #1890 from ionutionita92/issue-1871

tm: remove unnecessary TMCB_ACK_NEG_IN callback call

Daniel-Constantin Mierla authored on 13/03/2019 13:28:13
Showing 1 changed files
... ...
@@ -2303,14 +2303,6 @@ int reply_received( struct sip_msg  *p_msg )
2303 2303
 									t, &onsend_params);
2304 2304
 						}
2305 2305
 					}
2306
-					if (unlikely(has_tran_tmcbs(t, TMCB_ACK_NEG_IN))){
2307
-						INIT_TMCB_ONSEND_PARAMS(onsend_params,
2308
-								t->uas.request, p_msg, &uac->request,
2309
-								&uac->request.dst, ack, ack_len,
2310
-								TMCB_LOCAL_F, branch, TYPE_LOCAL_ACK);
2311
-						run_trans_callbacks_off_params(TMCB_ACK_NEG_IN,
2312
-								t, &onsend_params);
2313
-					}
2314 2306
 					shm_free(ack);
2315 2307
 				}
2316 2308
 			} else if (is_local(t) /*&& 200 <= msg_status < 300*/) {