Module: kamailio
Branch: master
Commit: 987f6a87862d050bea3342131515f96ea8b1009b
URL: 
https://github.com/kamailio/kamailio/commit/987f6a87862d050bea3342131515f96ea8b1009b

Author: Daniel-Constantin Mierla <[email protected]>
Committer: Daniel-Constantin Mierla <[email protected]>
Date: 2026-01-20T12:35:33+01:00

core: sip_msg_copy() copy the reply lumps

---

Modified: src/core/sip_msg_clone.c

---

Diff:  
https://github.com/kamailio/kamailio/commit/987f6a87862d050bea3342131515f96ea8b1009b.diff
Patch: 
https://github.com/kamailio/kamailio/commit/987f6a87862d050bea3342131515f96ea8b1009b.patch

---

diff --git a/src/core/sip_msg_clone.c b/src/core/sip_msg_clone.c
index b524f817886..6ddb32ac5f6 100644
--- a/src/core/sip_msg_clone.c
+++ b/src/core/sip_msg_clone.c
@@ -1096,7 +1096,12 @@ int sip_msg_copy(sip_msg_t *imsg, sip_msg_t *omsg, 
unsigned int flags)
                        goto error;
                }
        }
-
+       if(imsg->reply_lump != NULL) {
+               omsg->reply_lump = copy_reply_lump_list(imsg->reply_lump);
+               if(omsg->reply_lump == NULL) {
+                       goto error;
+               }
+       }
        return 0;
 
 error:

_______________________________________________
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