try loose_route<div><br></div><div>it will look at the route header and if it matches itself it will be removed and the invite will then be routed based on the RURI</div><div><br></div><div>Note - it&#39;s unusual to have a route header in an initial invite - it is possible of course but be careful if you loose_route initial invites, this type of routing is more likely going to exist with re-invites</div>

<div><br></div><div>-tr</div><div><br></div><div><br><br><div class="gmail_quote">On Tue, Aug 10, 2010 at 6:18 PM, Aditya Kumar <span dir="ltr">&lt;<a href="mailto:adityakumar345@yahoo.com">adityakumar345@yahoo.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div style="font-family:&#39;times new roman&#39;, &#39;new york&#39;, times, serif;font-size:12pt"><div>Hi All,</div>

<div>I am using opensips as a outound Proxy.</div><div><br></div><div>I am using exec_s5 in example script.</div><div><br></div><div>Most of the cases the following script is working based on my requirement:</div><div>route:</div>

<div><div> if (uri==myself) {</div><div>//removed</div><div>        };</div><div>        # user found, forward to his current uri now</div><div>        if (!t_relay()) {</div><div>                sl_reply_error();</div><div>

        };</div></div><div><br></div><div><br></div><div>Issue:</div><div>when the proxy sees that the RURI is not that of &quot;myself&quot; it is relaying.</div><div>which is what I
 want.</div><div><br></div><div>But I see that Route Header in INVITE is also getting forwarded.</div><div>Route is that of the opensips IP address.</div><div><br></div><div>Can any one help me in telling /pointing script where in,</div>

<div>When I see that uri is not myself, Repy the message as it is .</div><div>But remove the Route header?</div><div><br></div><div>pl let me know if I am not clear</div><div></div>


</div><br>

      </div><br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br></div><meta charset="utf-8"><span class="Apple-style-span" style="font-family: arial; font-size: small; "><b><font face="&#39;times new roman&#39;, serif"><div><span style="font-family: arial; font-weight: normal; "><b><font face="&#39;times new roman&#39;, serif"><br class="Apple-interchange-newline">

<br></font></b></span></div></font></b></span>