Module: sip-router
Branch: master
Commit: 752de05cc567c7502b1e723a09e350ce8d447664
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=752de05…
Author: Juha Heinanen <jh(a)tutpro.com>
Committer: Juha Heinanen <jh(a)tutpro.com>
Date: Fri Apr 19 13:24:52 2013 +0300
modules/rr: if outbound request is outgoing, do nothing outbound
specific in loose_route()
---
modules/rr/loose.c | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/modules/rr/loose.c b/modules/rr/loose.c
index 71f2465..e1d0571 100644
--- a/modules/rr/loose.c
+++ b/modules/rr/loose.c
@@ -550,7 +550,11 @@ static inline int process_outbound(struct sip_msg *_m, str
flow_token,
rcv->src_ip.af == AF_INET6 ? "]" : "",
rcv->src_port,
get_proto_name(rcv->proto));
- }
+ } else {
+ LM_DBG("outbound \"outgoing\" request found - "
+ "Not using flow-token for routing\n");
+ return 0;
+ }
return 1;
}
@@ -787,6 +791,8 @@ static inline int after_loose(struct sip_msg* _m, int preloaded)
return FLOW_TOKEN_BROKEN;
}
+ LM_DBG("process_outbound returned <%d>\n", use_ob);
+
/* IF the URI was added by me, remove it */
if (uri_is_myself>0)
{