Module: kamailio
Branch: 6.1
Commit: 1ab4d31158030138c933a8d74b55ad2b2e78bd14
URL: 
https://github.com/kamailio/kamailio/commit/1ab4d31158030138c933a8d74b55ad2b2e78bd14

Author: Daniel-Constantin Mierla <[email protected]>
Committer: Daniel-Constantin Mierla <[email protected]>
Date: 2026-03-02T12:49:15+01:00

core: adjust bufsize filed for event route message received

(cherry picked from commit c2639123993febc5b59f0127c2d97d79520a2928)

---

Modified: src/core/receive.c

---

Diff:  
https://github.com/kamailio/kamailio/commit/1ab4d31158030138c933a8d74b55ad2b2e78bd14.diff
Patch: 
https://github.com/kamailio/kamailio/commit/1ab4d31158030138c933a8d74b55ad2b2e78bd14.patch

---

diff --git a/src/core/receive.c b/src/core/receive.c
index 208625ec057..0da62423851 100644
--- a/src/core/receive.c
+++ b/src/core/receive.c
@@ -197,7 +197,11 @@ int ksr_evrt_received(char *buf, unsigned int *len, 
receive_info_t *rcv_info,
        memset(&netinfo, 0, sizeof(sr_net_info_t));
        netinfo.data.s = buf;
        netinfo.data.len = *len;
-       netinfo.bufsize = BUF_SIZE;
+       if(evtype == KSR_EVRT_RECEIVED_MESSAGE) {
+               netinfo.bufsize = BUF_SIZE;
+       } else {
+               netinfo.bufsize = netinfo.data.len;
+       }
        netinfo.rcv = rcv_info;
        netinfo.evtype = evtype;
 

_______________________________________________
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