<div dir="ltr">Hi ,<br>I am trying to relay invite from Kamailio to one of two proxies, as long as it receive the&nbsp; reply from one it should not forward to second but incase if the proxy1 does not reply then relay to proxy2.<br>
<br>here is my config<br><br>route(1);<br><br>if((src_ip != proxy1_ip_address) || (src_ip !=proxy2_ip_address) ) {<br>&nbsp;&nbsp;&nbsp;&nbsp; if(!t_relay_to_udp(&quot;proxy1_ip_address&quot;, &quot;5060&quot;)) || (!t_relay_to_udp(&quot;proxy2_ip_address&quot;,&quot;5060&quot;)) {<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; end_media_session();<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sl_reply_error();<br>&nbsp;&nbsp;&nbsp; }<br><br>}<br><br><br>I am also allowing only my proxies can see the location tables;<br>f ((src_ip== Proxy1_ip_address) || (src_ip= Proxy2_ip_address)) { <br>

                if (!lookup(&quot;location&quot;)) {
<br>
                        sl_send_reply(&quot;404&quot;, &quot;Not Found&quot;);
<br>
                        exit;
<br>
                };
<br><br>for some reason incoming calls from my proxies are looping means Kamailio sending back to one of my proxyies, i dont know if there is somthing missing in my configuration or somthing else is causing this problem.<br>
<br>Regards<br>Asim Riaz<br><br></div>