[OpenSIPS-Users] Removing a Header in INVITE before forwarding
Richard Revels
rrevels at bandwidth.com
Thu Aug 12 03:20:04 CEST 2010
I think this also happens (route header on initial invite) when you set an outbound proxy on some clients. My soft phone does this. I just yank route headers with the remove header field command on initial invites as I don't want clients deciding how to route. As TR mentioned, that can be bad'ish.
remove_hf("Route");
Richard
On Aug 10, 2010, at 7:48 PM, Aditya Kumar wrote:
> Thanks tr.
>
> I tried:
> if (loose_route()) {
> t_relay();
> exit;
> };
> --
> still it is not working? can you let me know what I am missing
> From: T.R. Missner <tr at voipjedi.com>
> To: OpenSIPS users mailling list <users at lists.opensips.org>
> Sent: Tue, August 10, 2010 3:27:27 PM
> Subject: Re: [OpenSIPS-Users] Removing a Header in INVITE before forwarding
>
> 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 <adityakumar345 at yahoo.com> 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
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
>
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.opensips.org/pipermail/users/attachments/20100811/d0438a7b/attachment.htm
More information about the Users
mailing list