Module: kamailio
Branch: 6.0
Commit: 0e538f8f93819314a0a55d2af64402150c554712
URL: 
https://github.com/kamailio/kamailio/commit/0e538f8f93819314a0a55d2af64402150c554712

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

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

- backport of 5dba946d56e9e2de1d9124b6912e525859c753f7

(cherry picked from commit 787991d19797a08c250a3b1acb870b964bdb242d)

---

Modified: src/core/msg_translator.c

---

Diff:  
https://github.com/kamailio/kamailio/commit/0e538f8f93819314a0a55d2af64402150c554712.diff
Patch: 
https://github.com/kamailio/kamailio/commit/0e538f8f93819314a0a55d2af64402150c554712.patch

---

diff --git a/src/core/msg_translator.c b/src/core/msg_translator.c
index 069eb70b4a6..f01e081dc9d 100644
--- a/src/core/msg_translator.c
+++ b/src/core/msg_translator.c
@@ -3067,8 +3067,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