try loose_route 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
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 -tr On Tue, Aug 10, 2010 at 6:18 PM, Aditya Kumar <[email protected]>wrote: > Hi All, > I am using opensips as a outound Proxy. > > I am using exec_s5 in example script. > > Most of the cases the following script is working based on my requirement: > route: > if (uri==myself) { > //removed > }; > # user found, forward to his current uri now > if (!t_relay()) { > sl_reply_error(); > }; > > > Issue: > when the proxy sees that the RURI is not that of "myself" it is relaying. > which is what I want. > > But I see that Route Header in INVITE is also getting forwarded. > Route is that of the opensips IP address. > > Can any one help me in telling /pointing script where in, > When I see that uri is not myself, Repy the message as it is . > But remove the Route header? > > pl let me know if I am not clear > > > _______________________________________________ > Users mailing list > [email protected] > http://lists.opensips.org/cgi-bin/mailman/listinfo/users > > * *
_______________________________________________ Users mailing list [email protected] http://lists.opensips.org/cgi-bin/mailman/listinfo/users
