Module: kamailio
Branch: 6.0
Commit: 27eb9f11da82d5a58137bb3ed2b0f05970a298f8
URL: 
https://github.com/kamailio/kamailio/commit/27eb9f11da82d5a58137bb3ed2b0f05970a298f8

Author: Daniel-Constantin Mierla <[email protected]>
Committer: Daniel-Constantin Mierla <[email protected]>
Date: 2026-01-06T12:54:22+01:00

stun: send response without triggering message-out callbacks

(cherry picked from commit 6d1fe099e284514be05a56f235dcd3ce2325fa67)

---

Modified: src/modules/stun/kam_stun.c

---

Diff:  
https://github.com/kamailio/kamailio/commit/27eb9f11da82d5a58137bb3ed2b0f05970a298f8.diff
Patch: 
https://github.com/kamailio/kamailio/commit/27eb9f11da82d5a58137bb3ed2b0f05970a298f8.patch

---

diff --git a/src/modules/stun/kam_stun.c b/src/modules/stun/kam_stun.c
index b5f2c105bdc..68ee45bbbb5 100644
--- a/src/modules/stun/kam_stun.c
+++ b/src/modules/stun/kam_stun.c
@@ -125,7 +125,7 @@ int process_stun_msg(char *buf, unsigned len, struct 
receive_info *ri)
 #endif
 
        /* send STUN response */
-       if(msg_send(&dst, msg_res.msg.buf.s, msg_res.msg.buf.len) != 0) {
+       if(msg_send_buffer(&dst, msg_res.msg.buf.s, msg_res.msg.buf.len, 1) != 
0) {
                goto 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