Browse code

siptrace: debug messages on net data callbacks

Daniel-Constantin Mierla authored on 04/05/2021 12:08:59
Showing 1 changed files
... ...
@@ -2141,9 +2141,12 @@ int siptrace_net_data_recv(sr_event_param_t *evp)
2141 2141
 
2142 2142
 	if(siptrace_exec_evcb_msg(&sto) == DROP_R_F) {
2143 2143
 		/* drop() used in event_route - all done */
2144
+		LM_DBG("skipping processing message due to drop\n");
2144 2145
 		return 0;
2145 2146
 	}
2146 2147
 
2148
+	LM_DBG("processing message mode %d\n", _siptrace_mode);
2149
+
2147 2150
 	if(_siptrace_mode & SIPTRACE_MODE_HEP) {
2148 2151
 		trace_send_hep_duplicate(&sto.body, &sto.fromip, &sto.toip, NULL, NULL);
2149 2152
 	}
... ...
@@ -2269,9 +2272,12 @@ int siptrace_net_data_sent(sr_event_param_t *evp)
2269 2272
 
2270 2273
 	if(siptrace_exec_evcb_msg(&sto) == DROP_R_F) {
2271 2274
 		/* drop() used in event_route - all done */
2275
+		LM_DBG("skipping processing message due to drop\n");
2272 2276
 		return 0;
2273 2277
 	}
2274 2278
 
2279
+	LM_DBG("processing message mode %d\n", _siptrace_mode);
2280
+
2275 2281
 	if(_siptrace_mode & SIPTRACE_MODE_HEP) {
2276 2282
 		trace_send_hep_duplicate(&sto.body, &sto.fromip, &sto.toip, NULL, NULL);
2277 2283
 	}