Module: kamailio Branch: master Commit: 092ad634a2741ad21fd29586a30bd2bcb9ac653b URL: https://github.com/kamailio/kamailio/commit/092ad634a2741ad21fd29586a30bd2bc...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@gmail.com Date: 2025-06-25T20:34:23+02:00
core: print ip and port in log message
---
Modified: src/core/msg_translator.c
---
Diff: https://github.com/kamailio/kamailio/commit/092ad634a2741ad21fd29586a30bd2bc... Patch: https://github.com/kamailio/kamailio/commit/092ad634a2741ad21fd29586a30bd2bc...
---
diff --git a/src/core/msg_translator.c b/src/core/msg_translator.c index 3a46f7106f5..e27b70deec1 100644 --- a/src/core/msg_translator.c +++ b/src/core/msg_translator.c @@ -2918,7 +2918,7 @@ char *via_builder(unsigned int *len, sip_msg_t *msg, #endif /* USE_COMP */ int port; int proto; - struct ip_addr ip; + struct ip_addr ip = {0}; union sockaddr_union *from = NULL; union sockaddr_union local_addr; struct tcp_connection *con = NULL; @@ -3064,8 +3064,8 @@ 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\n", - send_info->id); + "found - likely it is gone (dst: [%s]:%d)\n", + send_info->id, (port) ? ip_addr2a(&ip) : "", port); pkg_free(line_buf); return 0; }