Module: kamailio
Branch: master
Commit: 27e3b7f3f82957c6dc80f2ff89c40bdd87cecb81
URL: 
https://github.com/kamailio/kamailio/commit/27e3b7f3f82957c6dc80f2ff89c40bdd87cecb81

Author: Daniel-Constantin Mierla <mico...@gmail.com>
Committer: Daniel-Constantin Mierla <mico...@gmail.com>
Date: 2024-04-23T10:21:20+02:00

tcpops: reworked some debug messages

---

Modified: src/modules/tcpops/tcpops.c

---

Diff:  
https://github.com/kamailio/kamailio/commit/27e3b7f3f82957c6dc80f2ff89c40bdd87cecb81.diff
Patch: 
https://github.com/kamailio/kamailio/commit/27e3b7f3f82957c6dc80f2ff89c40bdd87cecb81.patch

---

diff --git a/src/modules/tcpops/tcpops.c b/src/modules/tcpops/tcpops.c
index 2b767a9470e..97068c627bb 100644
--- a/src/modules/tcpops/tcpops.c
+++ b/src/modules/tcpops/tcpops.c
@@ -249,6 +249,7 @@ static void 
tcpops_tcp_closed_run_route(tcp_closed_event_info_t *tev)
        sr_kemi_eng_t *keng = NULL;
        str *evname;
 
+       LM_DBG("event reason id: %d\n", tev->reason);
        if(tcpops_event_callback.len > 0) {
                rt = -1;
                keng = sr_kemi_eng_get();
@@ -258,9 +259,10 @@ static void 
tcpops_tcp_closed_run_route(tcp_closed_event_info_t *tev)
                }
        } else {
                rt = tcp_closed_routes[tev->reason];
-               LM_DBG("event reason id: %d rt: %d\n", tev->reason, rt);
-               if(rt == -1)
+               if(rt == -1) {
+                       LM_DBG("event reason id: %d - event route not set\n", 
tev->reason);
                        return;
+               }
        }
 
        if(faked_msg_init() < 0) {

_______________________________________________
Kamailio (SER) - Development Mailing List
To unsubscribe send an email to sr-dev-le...@lists.kamailio.org

Reply via email to