Module: kamailio
Branch: 6.1
Commit: 787991d19797a08c250a3b1acb870b964bdb242d
URL: 
https://github.com/kamailio/kamailio/commit/787991d19797a08c250a3b1acb870b964bdb242d

Author: Daniel-Constantin Mierla <[email protected]>
Committer: Daniel-Constantin Mierla <[email protected]>
Date: 2026-05-15T09:08:22+02:00

core: via builder - print socket in log when failing to find ws connection

- backport of 5dba946d56e9e2de1d9124b6912e525859c753f7

---

Modified: src/core/msg_translator.c

---

Diff:  
https://github.com/kamailio/kamailio/commit/787991d19797a08c250a3b1acb870b964bdb242d.diff
Patch: 
https://github.com/kamailio/kamailio/commit/787991d19797a08c250a3b1acb870b964bdb242d.patch

---

diff --git a/src/core/msg_translator.c b/src/core/msg_translator.c
index 3beec357c3a..bf18f970cb4 100644
--- a/src/core/msg_translator.c
+++ b/src/core/msg_translator.c
@@ -3161,8 +3161,9 @@ char *via_builder(unsigned int *len, sip_msg_t *msg,
 
                if(con == NULL) {
                        LM_WARN("TCP/TLS connection (id: %d) for WebSocket 
could not be "
-                                       "found - likely it is gone (dst: 
[%s]:%d)\n",
-                                       send_info->id, (port) ? ip_addr2a(&ip) 
: "", port);
+                                       "found - likely it is gone (dst: 
[%s]:%d) (sock: [%s])\n",
+                                       send_info->id, (port) ? ip_addr2a(&ip) 
: "", port,
+                                       (from) ? 
send_info->send_sock->sock_str.s : "*");
                        pkg_free(line_buf);
                        return 0;
                }

_______________________________________________
Kamailio - Development Mailing List -- [email protected]
To unsubscribe send an email to [email protected]
Important: keep the mailing list in the recipients, do not reply only to the 
sender!

Reply via email to