[sr-dev] git:kamailio_3.0: rr(k): use set_force_socket()

Daniel-Constantin Mierla miconda at gmail.com
Fri Nov 6 10:20:27 CET 2009


Module: sip-router
Branch: kamailio_3.0
Commit: a48787f281620e34b684dda1a19d7de49553d8ed
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=a48787f281620e34b684dda1a19d7de49553d8ed

Author: Andrei Pelinescu-Onciul <andrei at iptel.org>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date:   Thu Nov  5 15:16:44 2009 +0100

rr(k): use set_force_socket()

- use set_force_socket() instead of msg->force_send_socket
(cherry picked from commit bae241c28017b9a764876aee942065b941f28922)

---

 modules_k/rr/loose.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules_k/rr/loose.c b/modules_k/rr/loose.c
index ad85bf0..ab2f006 100644
--- a/modules_k/rr/loose.c
+++ b/modules_k/rr/loose.c
@@ -597,7 +597,7 @@ static inline int after_strict(struct sip_msg* _m)
 		 * send interface the one advertise in second Route */
 		si = grep_sock_info( &puri.host, puri.port_no, puri.proto);
 		if (si) {
-			_m->force_send_socket = si;
+			set_force_socket(_m, si);
 		} else {
 			LM_WARN("no socket found for match second RR\n");
 		}
@@ -813,7 +813,7 @@ static inline int after_loose(struct sip_msg* _m, int preloaded)
 			}
 			si = grep_sock_info( &puri.host, puri.port_no, puri.proto);
 			if (si) {
-				_m->force_send_socket = si;
+				set_force_socket(_m, si);
 			} else {
 				LM_WARN("no socket found for match second RR\n");
 			}




More information about the sr-dev mailing list