<div>Hi Inaki,</div>
<div> </div>
<div>Thanks again for your help. I still have a bit of problem:<br></div>
<div class="gmail_quote">
<div> </div>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div class="Ih2E3d"><span id=""></span>> Record-Route that is not pointing back to opensips's public address and<br>> instead it is using opensips private address. <br><br></div>Well, which is the REAL IP of OpenSIPS? a private or public one? both?<br>
<div class="Ih2E3d"></div></blockquote>
<div> </div>
<div> </div>
<div> 233.32.345.5:5060 is the real ip and <a href="http://192.168.1.101:5060">192.168.1.101:5060</a> is the private IP.</div>
<div> </div>
<div>> If I changed that to /usr/local/sbin/opensips -l 233.32.345.5:5060 -f<br>> opensips.cfg, I am getting error saying: ERROR:core;udp_init:<br>> bind(5,0x76512c,16) on 233.32.345.5: Cannot assign requested address.<br>
<br></div>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">So OpenSIPS host has not that public IP, is it?<br>
<div class="Ih2E3d"></div></blockquote>
<div> </div>
<div> </div>
<div>The opensips host does not have that IP. The router points the public IP to the opensips box only for port 5060.</div>
<div> </div>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div class="Ih2E3d"><span id=""></span><br><br>> Is this the place where my setup is having problem or is this something<br>> else? <br><br></div>In case OpenSIPS is behind NAT and the client has public IP is really<br>
difficult. The Record-Route added by OpenSIPS must point to the mapped public<br>IP (the source IP the client will see). This can be achieved manually with a<br>function in "rr" module.<br>But be carefull if you also have natted clients since if they do a request,<br>
they must see a Record-Route (in the 200 OK they receive) pointing to the<br>private address of the proxy, not the public one.<br><font color="#888888"><br></font></blockquote>
<div> </div>
<div> </div>
<div>I tried using record_route_preset("233.32.345.5:5060") in the onreply_route, so when 200OK passes through opensips, it will hange the record route to is public IP, but it seems like this command can't be used in the block. Is there any other function that I can use to see the value of record route?</div>
<div> </div>
<div>I am not sure about the last one. In my situation, the SUC is inside one nat and opensips is within another nat. Can it work that way?</div>
<div> </div>
<div> </div>
<div>Thanks alot for all your help.</div>
<div> </div>
<div>JB</div>
<div> </div>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><font color="#888888"><span id=""></span><br><br><br><br>--<br></font>
<div>
<div></div>
<div class="Wj3C7c">Iņaki Baz Castillo<br><br>_______________________________________________<br>Users mailing list<br><a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br><a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</div></div></blockquote></div><br>