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

Aditya Kumar adityakumar345 at yahoo.com
Wed Aug 11 00:18:04 CEST 2010


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


      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.opensips.org/pipermail/users/attachments/20100810/27bf5530/attachment.htm 


More information about the Users mailing list