Răsfoiți Sursa

modules/rr: if outbound request is outgoing, do nothing outbound
specific in loose_route()

Juha Heinanen 12 ani în urmă
părinte
comite
752de05cc5
1 a modificat fișierele cu 7 adăugiri și 1 ștergeri
  1. 7 1
      modules/rr/loose.c

+ 7 - 1
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)
 	{