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