[sr-dev] git:master:4168d7c5: sl: disabled SREV_NET_DATA_SENT for HTTP respones

Daniel-Constantin Mierla miconda at gmail.com
Mon Jun 7 15:17:36 CEST 2021


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

Author: Sergey Safarov <s.safarov at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2021-06-07T15:17:32+02:00

sl: disabled SREV_NET_DATA_SENT for HTTP respones

more details at GH #2767

---

Modified: src/modules/sl/sl_funcs.c

---

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

---

diff --git a/src/modules/sl/sl_funcs.c b/src/modules/sl/sl_funcs.c
index 86ad65c5e8..e80259d61d 100644
--- a/src/modules/sl/sl_funcs.c
+++ b/src/modules/sl/sl_funcs.c
@@ -210,7 +210,11 @@ int sl_reply_helper(struct sip_msg *msg, int code, char *reason, str *tag)
 	dst.comp=msg->via1->comp_no;
 #endif
 	dst.send_flags=msg->rpl_send_flags;
-	ret = msg_send(&dst, buf.s, buf.len);
+	if(sip_check_fline(buf.s, buf.len) == 0)
+		ret = msg_send_buffer(&dst, buf.s, buf.len, 0);
+	else
+		ret = msg_send_buffer(&dst, buf.s, buf.len, 1);
+
 	mhomed=backup_mhomed;
 
 	keng = sr_kemi_eng_get();




More information about the sr-dev mailing list