Module: kamailio
Branch: master
Commit: 4168d7c55955a01c3a30c67d5e8a510be52120ff
URL:
https://github.com/kamailio/kamailio/commit/4168d7c55955a01c3a30c67d5e8a510…
Author: Sergey Safarov <s.safarov(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)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/4168d7c55955a01c3a30c67d5e8a510…
Patch:
https://github.com/kamailio/kamailio/commit/4168d7c55955a01c3a30c67d5e8a510…
---
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();