<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:'times new roman', 'new york', times, serif;font-size:12pt"><div><br></div><div style="font-family:times new roman, new york, times, serif;font-size:12pt">Thanks tr.</div><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><br></div><div style="font-family:times new roman, new york, times, serif;font-size:12pt">I tried:</div><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><div> if (loose_route()) {</div><div> t_relay();</div><div> exit;</div><div> };</div><div style="font-family:times new roman, new york, times,
serif;font-size:12pt">--</div><div style="font-family:times new roman, new york, times, serif;font-size:12pt">still it is not working? can you let me know what I am missing</div><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><font size="2" face="Tahoma"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> T.R. Missner <tr@voipjedi.com><br><b><span style="font-weight: bold;">To:</span></b> OpenSIPS users mailling list <users@lists.opensips.org><br><b><span style="font-weight: bold;">Sent:</span></b> Tue, August 10, 2010 3:27:27 PM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: [OpenSIPS-Users] Removing a Header in INVITE before forwarding<br></font><br>
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'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"><<a rel="nofollow" ymailto="mailto:adityakumar345@yahoo.com" target="_blank" href="mailto:adityakumar345@yahoo.com">adityakumar345@yahoo.com</a>></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-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 "myself" 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 rel="nofollow" ymailto="mailto:Users@lists.opensips.org" target="_blank" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br><span>
<a target="_blank" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a></span><br>
<br></blockquote></div><br></div><span class="Apple-style-span" style="font-family: arial; font-size: small; "><b><font face="'times new roman', serif"><div><span style="font-family:arial;font-weight:normal;"><b><font face="'times new roman', serif"><br class="Apple-interchange-newline">
<br></font></b></span></div></font></b></span>
</div></div><div style="position:fixed"></div>
</div><br>
</body></html>