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

Aditya Kumar adityakumar345 at yahoo.com
Wed Aug 11 01:48:48 CEST 2010


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
>
>


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


More information about the Users mailing list