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.<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 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.<br>
<br>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...<br><br>Thanks.<br><br><div class="gmail_quote">On Sat, Mar 15, 2008 at 4:12 PM, Iñaki Baz Castillo <<a href="mailto:ibc@aliax.net">ibc@aliax.net</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;">El Domingo, 16 de Marzo de 2008, Adrian A escribió:<br>
<div class="Ih2E3d">> Hi,<br>
><br>
> I'm setting up multiple OpenSER proxies in different locations to server a<br>
> SIP domain. The proxies use a shared location database so they always know<br>
> where to send requests to the client when an incoming call hits either one.<br>
> The clients have the outbound proxy set to whichever one is closest to<br>
> them.<br>
<br>
> The problem is that because the clients are NAT they do not receive<br>
> the request if the proxy IP that sends it is not the same as the one they<br>
> have set as the outbound proxy. The NAT will reject the request because it<br>
> does not arrive from the same IP that the connection was established to.<br>
<br>
</div>There is a RFC to solve your problem and a module for OpenSer. It's called<br>
PATH:<br>
<br>
- SIP Extension Header Field for Registering Non-Adjacent Contacts :<br>
<a href="http://tools.ietf.org/html/rfc3327" target="_blank">http://tools.ietf.org/html/rfc3327</a><br>
- <a href="http://www.openser.org/docs/modules/1.3.x/path.html" target="_blank">http://www.openser.org/docs/modules/1.3.x/path.html</a><br>
<br>
Also you need to set some options in "registrar" module.<br>
<br>
<br>
Regards.<br>
<font color="#888888"><br>
<br>
--<br>
Iñaki Baz Castillo<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.openser.org">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>
</font></blockquote></div><br>