Module: kamailio
Branch: 5.5
Commit: ff2ff19af7087e188d3b7c100f80db2c8c534ca9
URL:
https://github.com/kamailio/kamailio/commit/ff2ff19af7087e188d3b7c100f80db2…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2021-05-05T10:13:06+02:00
siptrace: debug messages on net data callbacks
(cherry picked from commit 95f3b4dea5d3f0d57ba79c8e8cd34d2ab30c7193)
---
Modified: src/modules/siptrace/siptrace.c
---
Diff:
https://github.com/kamailio/kamailio/commit/ff2ff19af7087e188d3b7c100f80db2…
Patch:
https://github.com/kamailio/kamailio/commit/ff2ff19af7087e188d3b7c100f80db2…
---
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);
}