[OpenSIPS-Users] Removing a Header in INVITE before forwarding

Raúl Alexis Betancor Santana rabs at dimension-virtual.com
Thu Aug 12 08:43:58 CEST 2010


On Tuesday 10 August 2010 23:18:04 Aditya Kumar 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?

You should NEVER, EVER IN YOUR LIFE to remove the Router header, it you do so, 
it's a 99.9% that you will be in troubles.

> pl let me know if I am not clear

If you paste an ngrep trace of what you get and try to explain more clear what 
you whant, maybe we could help you.

Best regards
-- 
Raúl Alexis Betancor Santana
Dimensión Virtual



More information about the Users mailing list