Module: sip-router
Branch: sr_3.0
Commit: d41be35145a2f049c574d183771ea7102563e8af
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=d41be35…
Author: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Committer: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Date: Thu Nov 5 15:15:33 2009 +0100
pv: use set_force_socket()
- use set_force_socket() instead of msg->force_send_socket
---
modules_k/pv/pv_core.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules_k/pv/pv_core.c b/modules_k/pv/pv_core.c
index 71186dd..16c1f70 100644
--- a/modules_k/pv/pv_core.c
+++ b/modules_k/pv/pv_core.c
@@ -1882,7 +1882,7 @@ int pv_set_force_sock(struct sip_msg* msg, pv_param_t *param,
if(val==NULL || (val->flags&PV_VAL_NULL))
{
- msg->force_send_socket = NULL;
+ reset_force_socket(msg);
return 0;
}
@@ -1904,7 +1904,7 @@ int pv_set_force_sock(struct sip_msg* msg, pv_param_t *param,
si = grep_sock_info(&host, (unsigned short)port, (unsigned short)proto);
if (si!=NULL)
{
- msg->force_send_socket = si;
+ set_force_socket(msg, si);
} else {
LM_WARN("no socket found to match [%.*s]\n",
val->rs.len, val->rs.s);