Explorar o código

sl: use the msg reply send_flags

Andrei Pelinescu-Onciul %!s(int64=16) %!d(string=hai) anos
pai
achega
c055af9159
Modificáronse 2 ficheiros con 3 adicións e 1 borrados
  1. 2 1
      modules_k/sl/sl_funcs.c
  2. 1 0
      modules_s/sl/sl_funcs.c

+ 2 - 1
modules_k/sl/sl_funcs.c

@@ -245,10 +245,11 @@ int sl_send_reply_helper(struct sip_msg *msg ,int code, str *text, str *tag)
 	/* use for sending the received interface -bogdan*/
 	/* use for sending the received interface -bogdan*/
 	dst.proto=msg->rcv.proto;
 	dst.proto=msg->rcv.proto;
 	dst.send_sock=msg->rcv.bind_address;
 	dst.send_sock=msg->rcv.bind_address;
-	dst.id=msg->rcv.proto_reserved1;	
+	dst.id=msg->rcv.proto_reserved1;
 #ifdef USE_COMP
 #ifdef USE_COMP
 	dst.comp=msg->via1->comp_no;
 	dst.comp=msg->via1->comp_no;
 #endif
 #endif
+	dst.send_flags=msg->rpl_send_flags;
 	ret = msg_send(&dst, buf.s, buf.len);
 	ret = msg_send(&dst, buf.s, buf.len);
 	mhomed=backup_mhomed;
 	mhomed=backup_mhomed;
 	pkg_free(buf.s);
 	pkg_free(buf.s);

+ 1 - 0
modules_s/sl/sl_funcs.c

@@ -168,6 +168,7 @@ int sl_send_reply(struct sip_msg *msg , int code, char* reason)
 #ifdef USE_COMP
 #ifdef USE_COMP
 	dst.comp=msg->via1->comp_no;
 	dst.comp=msg->via1->comp_no;
 #endif
 #endif
+	dst.send_flags=msg->rpl_send_flags;
 	ret = msg_send(&dst, buf, len);
 	ret = msg_send(&dst, buf, len);
 	mhomed=backup_mhomed;
 	mhomed=backup_mhomed;
 	pkg_free(buf);
 	pkg_free(buf);