Hi,<div><br></div><div>I&#39;ll do my best to explain this as&nbsp;concisely&nbsp;as possible. &nbsp;I have an access-side network where most of my endpoints live out on the Internet and they all use my OpenSIPS server as their outbound proxy and registrar; however, the&nbsp;tenants&nbsp;do not live in OpenSIPS and I&#39;m not using a radius server for AAA on REGISTERs.&nbsp;</div>
<div><br></div><div>I am passing REGISTER requests up stream to my network core, like so:</div><div><br></div><div><div>route[2]</div><div>{</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;setflag(6);<br></div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;fix_nated_register();</div><div>
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;fix_nated_contact();</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;force_rport();</div><div><br></div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;# We must handle replies for registrations, for caching and location</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;# tracking purposes.</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;t_on_reply(&quot;1&quot;);</div>
<div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;t_on_failure(&quot;1&quot;);</div><div><br></div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;# Check for digest</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;if (dummy_www_authorize(&quot;&quot;))</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;{</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;xlog(&quot;L_INFO&quot;, &quot;REGISTER: No Digest, sending challenge\n&quot;);</div>
<div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;www_challenge(&quot;&quot;, &quot;0&quot;);</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;exit;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;}</div><div><div><br></div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;# Digest was good if we get here</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;save(&quot;location&quot;, &quot;0x02&quot;);</div>
<div><br></div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;# Relay register to porta</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;t_relay(&quot;udp:<a href="http://216.151.151.100:5060">216.151.151.100:5060</a>&quot;);</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;exit;</div><div>}</div><div><br></div><div>
The problem is that when the UA is NOT being natted and has a public Internet address, the Contact HF is not being changed, therefore INVITE requests destined for the UA never go through my OpenSIPS system and instead my core tries to contact the UA directly. &nbsp;fix_natted_contact() and fix_natted_registrar() just aren&#39;t doing the job.</div>
<div><br></div><div>Is there a way to force OpenSIPS to always change the contact HF before relaying the REGISTER request so subsequent INVITEs flow through the system?</div><div><br></div><div>Thanks.</div><div><br></div>
<div>-Daniel</div><div><br></div></div></div>