Module: kamailio
Branch: master
Commit: 6d1fe099e284514be05a56f235dcd3ce2325fa67
URL: 
https://github.com/kamailio/kamailio/commit/6d1fe099e284514be05a56f235dcd3ce2325fa67

Author: Daniel-Constantin Mierla <[email protected]>
Committer: Daniel-Constantin Mierla <[email protected]>
Date: 2026-01-06T09:08:40+01:00

stun: send response without triggering message-out callbacks

---

Modified: src/modules/stun/kam_stun.c

---

Diff:  
https://github.com/kamailio/kamailio/commit/6d1fe099e284514be05a56f235dcd3ce2325fa67.diff
Patch: 
https://github.com/kamailio/kamailio/commit/6d1fe099e284514be05a56f235dcd3ce2325fa67.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