[sr-dev] git:master:e3b9521a: siptrace: use msg_send_buffer() to skip send callbacks for uri duplicate

Daniel-Constantin Mierla miconda at gmail.com
Wed Mar 2 09:29:16 CET 2022


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

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2022-03-02T09:29:06+01:00

siptrace: use msg_send_buffer() to skip send callbacks for uri duplicate

- GH #3042

---

Modified: src/modules/siptrace/siptrace_send.c

---

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

---

diff --git a/src/modules/siptrace/siptrace_send.c b/src/modules/siptrace/siptrace_send.c
index 63fdd5c6cb..31d7f716ca 100644
--- a/src/modules/siptrace/siptrace_send.c
+++ b/src/modules/siptrace/siptrace_send.c
@@ -349,7 +349,7 @@ int trace_send_duplicate(char *buf, int len, dest_info_t *dst2)
 		}
 	}
 
-	if(msg_send(pdst, buf, len) < 0) {
+	if(msg_send_buffer(pdst, buf, len, 1) < 0) {
 		LM_ERR("cannot send duplicate message\n");
 		goto error;
 	}




More information about the sr-dev mailing list