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

Author: Peter Dunkley <[email protected]>
Committer: Peter Dunkley <[email protected]>
Date:   Wed Apr 24 11:49:21 2013 +0100

modules/rr: refactored process_outbound()

- Still need to update loose.c to properly handle double-RRs with flow-tokens

---

 modules/rr/loose.c |   10 ++++------
 1 files changed, 4 insertions(+), 6 deletions(-)

diff --git a/modules/rr/loose.c b/modules/rr/loose.c
index e1d0571..50c4774 100644
--- a/modules/rr/loose.c
+++ b/modules/rr/loose.c
@@ -550,13 +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;
+       }
 
-       return 1;
+       LM_DBG("Not using flow-token for routing\n");
+       return 0;
 }
 
 /*!


_______________________________________________
sr-dev mailing list
[email protected]
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to