[sr-dev] git:master:95f3b4de: siptrace: debug messages on net data callbacks

Daniel-Constantin Mierla miconda at gmail.com
Tue May 4 14:09:37 CEST 2021


Module: kamailio
Branch: master
Commit: 95f3b4dea5d3f0d57ba79c8e8cd34d2ab30c7193
URL: https://github.com/kamailio/kamailio/commit/95f3b4dea5d3f0d57ba79c8e8cd34d2ab30c7193

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2021-05-04T14:09:27+02:00

siptrace: debug messages on net data callbacks

---

Modified: src/modules/siptrace/siptrace.c

---

Diff:  https://github.com/kamailio/kamailio/commit/95f3b4dea5d3f0d57ba79c8e8cd34d2ab30c7193.diff
Patch: https://github.com/kamailio/kamailio/commit/95f3b4dea5d3f0d57ba79c8e8cd34d2ab30c7193.patch

---

diff --git a/src/modules/siptrace/siptrace.c b/src/modules/siptrace/siptrace.c
index 4648340d73..012644bfa0 100644
--- a/src/modules/siptrace/siptrace.c
+++ b/src/modules/siptrace/siptrace.c
@@ -2141,9 +2141,12 @@ int siptrace_net_data_recv(sr_event_param_t *evp)
 
 	if(siptrace_exec_evcb_msg(&sto) == DROP_R_F) {
 		/* drop() used in event_route - all done */
+		LM_DBG("skipping processing message due to drop\n");
 		return 0;
 	}
 
+	LM_DBG("processing message mode %d\n", _siptrace_mode);
+
 	if(_siptrace_mode & SIPTRACE_MODE_HEP) {
 		trace_send_hep_duplicate(&sto.body, &sto.fromip, &sto.toip, NULL, NULL);
 	}
@@ -2269,9 +2272,12 @@ int siptrace_net_data_sent(sr_event_param_t *evp)
 
 	if(siptrace_exec_evcb_msg(&sto) == DROP_R_F) {
 		/* drop() used in event_route - all done */
+		LM_DBG("skipping processing message due to drop\n");
 		return 0;
 	}
 
+	LM_DBG("processing message mode %d\n", _siptrace_mode);
+
 	if(_siptrace_mode & SIPTRACE_MODE_HEP) {
 		trace_send_hep_duplicate(&sto.body, &sto.fromip, &sto.toip, NULL, NULL);
 	}




More information about the sr-dev mailing list