[OpenSER-Users] Relaying to outbound proxy
Andreas Granig
agranig at sipwise.com
Mon Mar 17 15:57:57 CET 2008
Hi Adrian,
I wrote the path module for exactly the scenario you describe here, so
it should work for you as well :)
So, on your outbound proxy you have to set:
loadmodule "path.so"
modparam("path", "use_received", 1)
As well as something like the following in your routes:
if(method=="REGISTER") { add_path_received(); }
An on your registrar/proxy, you have to set:
modparam("registrar", "use_path", 1)
modparam("registrar", "path_mode", 0)
modparam("registrar", "path_use_received", 1)
Cheers,
Andreas
Adrian A wrote:
> Does anyone know how to use the Path functions or has an alternative
> method of solving this issue with multiple proxies?
>
> Thanks in advance.
>
>
> On Sat, Mar 15, 2008 at 7:45 PM, Iñaki Baz Castillo <ibc at aliax.net
> <mailto:ibc at aliax.net>> wrote:
>
> El Domingo, 16 de Marzo de 2008, Adrian A escribió:
> > I've looked over the RFC and the module and while they describe a
> slightly
> > different scenario (with a load balancer and separate
> registrars), it seems
> > like it should work.
> >
> > I've added the required parameters to the config:
> >
> > modparam("registrar", "use_path", 1)
> > modparam("registrar", "path_mode", 0)
> > modparam("registrar", "path_use_received", 1)
> > modparam("path", "use_received", 1)
> >
> > Then, in my auth section, I store the path:
> >
> > if (is_method("REGISTER")) {
> > add_path();
> >
> > This does not seem to do anything however, the proxy still forwards
> > directly to the client instead of sending it to the proper
> outbound proxy.
> > I looked in the location table and I see path is set to NULL so
> unless this
> > is stored in some other place, the proxy would not know where to
> send it
> > anyway.
> >
> > Have you used this? Am I doing something wrong? I could not find
> on this
> > list or anywhere a sample openser config that uses it...
>
> Sorry, I've not used it, but I'm 100% sure that it's what you need.
>
>
> --
> Iñaki Baz Castillo
>
> _______________________________________________
> Users mailing list
> Users at lists.openser.org <mailto:Users at lists.openser.org>
> http://lists.openser.org/cgi-bin/mailman/listinfo/users
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> Users at lists.openser.org
> http://lists.openser.org/cgi-bin/mailman/listinfo/users
More information about the Users
mailing list