Module: sip-router
Branch: andrei/send_flags
Commit: c055af91592c671f6a97f23c0c11dcf8d73f3010
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=c055af9…
Author: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Committer: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Date: Tue Sep 15 17:44:50 2009 +0200
sl: use the msg reply send_flags
---
modules_k/sl/sl_funcs.c | 3 ++-
modules_s/sl/sl_funcs.c | 1 +
2 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/modules_k/sl/sl_funcs.c b/modules_k/sl/sl_funcs.c
index f93e059..78e3f8a 100644
--- a/modules_k/sl/sl_funcs.c
+++ b/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*/
dst.proto=msg->rcv.proto;
dst.send_sock=msg->rcv.bind_address;
- dst.id=msg->rcv.proto_reserved1;
+ dst.id=msg->rcv.proto_reserved1;
#ifdef USE_COMP
dst.comp=msg->via1->comp_no;
#endif
+ dst.send_flags=msg->rpl_send_flags;
ret = msg_send(&dst, buf.s, buf.len);
mhomed=backup_mhomed;
pkg_free(buf.s);
diff --git a/modules_s/sl/sl_funcs.c b/modules_s/sl/sl_funcs.c
index 1051ec7..e4a6b1e 100644
--- a/modules_s/sl/sl_funcs.c
+++ b/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
dst.comp=msg->via1->comp_no;
#endif
+ dst.send_flags=msg->rpl_send_flags;
ret = msg_send(&dst, buf, len);
mhomed=backup_mhomed;
pkg_free(buf);