Module: kamailio
Branch: 5.8
Commit: 9f92a97457b13d2a3ce27b86e59b2687371c8b26
URL: 
https://github.com/kamailio/kamailio/commit/9f92a97457b13d2a3ce27b86e59b2687371c8b26

Author: Daniel-Constantin Mierla <mico...@gmail.com>
Committer: Daniel-Constantin Mierla <mico...@gmail.com>
Date: 2025-04-09T09:42:27+02:00

tm: mode details in log message

(cherry picked from commit 9788fe9d2241fb85e6d78578689d6694161bc5a1)
(cherry picked from commit bc5e32c9ba1a4da6cd9dd85098f3576d2c0dc4bc)

---

Modified: src/modules/tm/t_reply.c

---

Diff:  
https://github.com/kamailio/kamailio/commit/9f92a97457b13d2a3ce27b86e59b2687371c8b26.diff
Patch: 
https://github.com/kamailio/kamailio/commit/9f92a97457b13d2a3ce27b86e59b2687371c8b26.patch

---

diff --git a/src/modules/tm/t_reply.c b/src/modules/tm/t_reply.c
index a6c7579cdbf..371988c4412 100644
--- a/src/modules/tm/t_reply.c
+++ b/src/modules/tm/t_reply.c
@@ -548,7 +548,9 @@ static int _reply_light(struct cell *trans, char *buf, 
unsigned int len,
         * the chances for this increase a lot.
         */
        if(unlikely(!trans->uas.response.dst.send_sock)) {
-               LM_ERR("no resolved dst to send reply to\n");
+               LM_ERR("no resolved dst to send reply to [code: %u, t-flags: %x"
+                          " buf: %.*s ...]\n",
+                               code, trans->flags, (len > 128) ? 128 : len, 
buf);
        } else {
                if(likely(SEND_PR_BUFFER(rb, buf, len) >= 0)) {
                        if(unlikely(code >= 200 && !is_local(trans)

_______________________________________________
Kamailio - Development Mailing List -- sr-dev@lists.kamailio.org
To unsubscribe send an email to sr-dev-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!

Reply via email to