Hi Andreas,<br><br>I have set the configuration as you mentioned below but it does not seem to help. Let me give you some more details about what I'm trying to accomplish.<br><br>In my setup, there are 2 proxies: Proxy A and Proxy B. Depending on the physical location, some users register to Proxy A and some to Proxy B. The openser database is shared between the two proxies.<br>
<br>Here is the call scenario that I'm looking to get working:<br><br>1. User Bob registers to Proxy A with a particular NAT binding<br>2. External call comes in to Proxy B for user Bob.<br>3. Proxy B tries to contact Bob at the location from the usrloc table but because the NAT binding does not know anything about Proxy B's IP, the request is not passed trough.<br>
<br>What I need is for Proxy B to send the request to Proxy A so this can then relay to client.<br><br>I have added the modparam settings on both proxies (since both can act as both outbound proxies and registrar for different users) and added inside the route:<br>
<br>...<br>If (uri == myself) {<br> ...<br> If (is_method("REGISTER")) {<br> add_path_received();<br> ...<br><br>I would have expected that this would add something to the 'path' value in the location table, but this is still NULL after user registers.<br>
<br>Thanks,<br>Adrian<br><br><br><div class="gmail_quote">On Mon, Mar 17, 2008 at 7:57 AM, Andreas Granig <<a href="mailto:agranig@sipwise.com" target="_blank">agranig@sipwise.com</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Adrian,<br>
<br>
I wrote the path module for exactly the scenario you describe here, so<br>
it should work for you as well :)<br>
<br>
So, on your outbound proxy you have to set:<br>
<br>
loadmodule "path.so"<br>
<div>modparam("path", "use_received", 1)<br>
<br>
</div>As well as something like the following in your routes:<br>
<br>
if(method=="REGISTER") { add_path_received(); }<br>
<br>
An on your registrar/proxy, you have to set:<br>
<div><br>
modparam("registrar", "use_path", 1)<br>
modparam("registrar", "path_mode", 0)<br>
modparam("registrar", "path_use_received", 1)<br>
<br>
</div>Cheers,<br>
Andreas<br>
<div><br>
<br>
<br>
Adrian A wrote:<br>
> Does anyone know how to use the Path functions or has an alternative<br>
> method of solving this issue with multiple proxies?<br>
><br>
> Thanks in advance.<br>
><br>
><br>
> On Sat, Mar 15, 2008 at 7:45 PM, Iñaki Baz Castillo <<a href="mailto:ibc@aliax.net" target="_blank">ibc@aliax.net</a><br>
</div><div><div></div><div>> <mailto:<a href="mailto:ibc@aliax.net" target="_blank">ibc@aliax.net</a>>> wrote:<br>
><br>
> El Domingo, 16 de Marzo de 2008, Adrian A escribió:<br>
> > I've looked over the RFC and the module and while they describe a<br>
> slightly<br>
> > different scenario (with a load balancer and separate<br>
> registrars), it seems<br>
> > like it should work.<br>
> ><br>
> > I've added the required parameters to the config:<br>
> ><br>
> > modparam("registrar", "use_path", 1)<br>
> > modparam("registrar", "path_mode", 0)<br>
> > modparam("registrar", "path_use_received", 1)<br>
> > modparam("path", "use_received", 1)<br>
> ><br>
> > Then, in my auth section, I store the path:<br>
> ><br>
> > if (is_method("REGISTER")) {<br>
> > add_path();<br>
> ><br>
> > This does not seem to do anything however, the proxy still forwards<br>
> > directly to the client instead of sending it to the proper<br>
> outbound proxy.<br>
> > I looked in the location table and I see path is set to NULL so<br>
> unless this<br>
> > is stored in some other place, the proxy would not know where to<br>
> send it<br>
> > anyway.<br>
> ><br>
> > Have you used this? Am I doing something wrong? I could not find<br>
> on this<br>
> > list or anywhere a sample openser config that uses it...<br>
><br>
> Sorry, I've not used it, but I'm 100% sure that it's what you need.<br>
><br>
><br>
> --<br>
> Iñaki Baz Castillo<br>
><br>
> _______________________________________________<br>
> Users mailing list<br>
</div></div>> <a href="mailto:Users@lists.openser.org" target="_blank">Users@lists.openser.org</a> <mailto:<a href="mailto:Users@lists.openser.org" target="_blank">Users@lists.openser.org</a>><br>
<div>> <a href="http://lists.openser.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.openser.org/cgi-bin/mailman/listinfo/users</a><br>
><br>
><br>
><br>
</div>> ------------------------------------------------------------------------<br>
<div><div></div><div>><br>
> _______________________________________________<br>
> Users mailing list<br>
> <a href="mailto:Users@lists.openser.org" target="_blank">Users@lists.openser.org</a><br>
> <a href="http://lists.openser.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.openser.org/cgi-bin/mailman/listinfo/users</a><br>
</div></div></blockquote></div><br>