<div dir="ltr">Finally it works!<div><br></div><div>In case this helps someone else, I needed to do a lookup("location"); before calling route(relay);</div><div>This rewrites the request URI to be the contact saved in the location table.</div><div><br></div><div>Mark.</div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, 8 Nov 2019 at 13:42, Mark Farmer <<a href="mailto:farmorg@gmail.com">farmorg@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr">I'm running with an advertised IP in mhomed mode. It's as though OpenSIPS doesn't realise that it is responsible for the domain (IP) but I've got the domain module loaded and the advertised IP in the table.<div><br></div><div>Very odd.</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, 8 Nov 2019 at 11:59, Mark Farmer <<a href="mailto:farmorg@gmail.com" target="_blank">farmorg@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr">Hi all<div><br></div><div>I'm suddenly having a problem calling from one registered user to another. Even though both users are locally registered, the INVITE is trying to go to the public IP of OpenSIPS (itself) instead of the IP:rport of the other phone.<div dir="ltr"></div></div><div><br></div><div>OpenSIPS is behind NAT as are the phones and I have fix_nated_register() & fix_nated_contact() which seem to be working. Also the contact in the location table is correct.</div><div><br></div><div>Fairly sure I'm going to end up kicking myself over this one but I just can't see the problem!</div><div><br></div><div>All suggestions gratefully received.</div><div><br></div><div>Thanks</div><div>Mark.</div><div><br></div></div></div></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr">Mark Farmer<br><a href="mailto:farmorg@gmail.com" target="_blank">farmorg@gmail.com</a></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature">Mark Farmer<br><a href="mailto:farmorg@gmail.com" target="_blank">farmorg@gmail.com</a></div>