[Users] Trying to understand difference between forward() and t_relay()

Max Gregorian gregorian442 at googlemail.com
Wed Dec 20 15:40:35 CET 2006


As I understand it, *forward* is *stateless* (see Core cookbook) whereas *
t_relay* is *stateful* (see *tm* module -
http://www.openser.org/docs/modules/1.0.x/tm.html#AEN342), so you use one or
the other depending on what type of proxy you are trying to implement.



On 19/12/06, Juan Carlos Castro y Castro <jcastro at instant.com.br> wrote:
>
> Should've tried harder:
>
> http://web.archive.org/web/20060307103702/http://www.iptel.org/ser/doc/seruser/seruser.html#AEN923
>
> Does that mean forward() doesn't add a Via: header whereas t_relay()
> does? And, with forward(),  [Open]SER won't see the ACKs and BYEs and
> other responses related to the initial request?


In stateless mode the proxy just forwards requests to the destination and
doesn't wait for replies etc. This is what makes *stateless* proxies faster
in general than stateful ones.

Not sure about whether a Via is added, but I doubt it as that would imply it
would have to receive and process the replies.


Juan Carlos Castro y Castro escreveu:
> > I was googling for that and found a reply in the SER list that links
> > to a page that doesn't exist anymore:
> > http://lists.iptel.org/pipermail/serusers/2004-October/011924.html
> >
> > My searchs have been unsuccesful so far. Can anyone give me a pointer?
> >
> > Thanks,
> > Juan
> >
> > _______________________________________________
> > Users mailing list
> > Users at openser.org
> > http://openser.org/cgi-bin/mailman/listinfo/users
> >
>
>
> _______________________________________________
> Users mailing list
> Users at openser.org
> http://openser.org/cgi-bin/mailman/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kamailio.org/pipermail/users/attachments/20061220/3d74f3be/attachment.htm 


More information about the Users mailing list