Browse code

Merge a2be7504dae42236fdbd51b4b808ea51d71ba9e7 into 0e806316b84be8388dad670e964e54011000b4a4

sergey-safarov authored on 06/06/2021 15:55:55 • GitHub committed on 06/06/2021 15:55:55
Showing 2 changed files
... ...
@@ -32,6 +32,7 @@
32 32
 #include "ip_addr.h"
33 33
 
34 34
 int receive_msg(char* buf, unsigned int len, struct receive_info *ri);
35
+int sip_check_fline(char *buf, unsigned int len);
35 36
 unsigned int inc_msg_no(void);
36 37
 void ksr_msg_env_reset(void);
37 38
 
... ...
@@ -210,7 +210,11 @@ int sl_reply_helper(struct sip_msg *msg, int code, char *reason, str *tag)
210 210
 	dst.comp=msg->via1->comp_no;
211 211
 #endif
212 212
 	dst.send_flags=msg->rpl_send_flags;
213
-	ret = msg_send(&dst, buf.s, buf.len);
213
+	if(sip_check_fline(buf.s, buf.len) == 0)
214
+		ret = msg_send_buffer(&dst, buf.s, buf.len, 0);
215
+	else
216
+		ret = msg_send_buffer(&dst, buf.s, buf.len, 1);
217
+
214 218
 	mhomed=backup_mhomed;
215 219
 
216 220
 	keng = sr_kemi_eng_get();