[OpenSIPS-Users] Module Path and function loose_route
Iñaki Baz Castillo
ibc at aliax.net
Thu Aug 20 20:43:00 CEST 2009
El Jueves, 20 de Agosto de 2009, Alex Balashov escribió:
> Iñaki Baz Castillo wrote:
> > El Jueves, 20 de Agosto de 2009, mayamatakeshi escribió:
> >> "There is only one exception: If the request is out-of-dialog (no
> >> to-tag) and there is only one Route: header indicating the local
> >> proxy, then the Route: header is removed and the function returns
> >> FALSE."
> >>
> >> But why does it return FALSE?
> >
> > Because if an initial request (no To-tag) has a single Route header
> > pointing to the proxy handling it, it's useless.
>
> That's correct - initial INVITEs (and all initial requests) are
> different than in-dialog requests (requests arising within a dialog
> created by the initial requests).
>
> They are routed manually, not using loose_route() in any way.
In fact, in case of PATH usage, the registrar should receive the request for a
registered user, add Route header pointing to the inbound/outbound proxy of
the registered user and change the RURI with the real location of the
registered user (or mapped public address in case of NAT), route the request
to it, and the inbound/outbound proxy should remove the Route header and route
the request based on the RURI as usual.
--
Iñaki Baz Castillo <ibc at aliax.net>
More information about the Users
mailing list