Hi,<div><br></div><div>I'll do my best to explain this as concisely as possible. 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 tenants do not live in OpenSIPS and I'm not using a radius server for AAA on REGISTERs. </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> setflag(6);<br></div><div> fix_nated_register();</div><div>
fix_nated_contact();</div><div> force_rport();</div><div><br></div><div> # We must handle replies for registrations, for caching and location</div><div> # tracking purposes.</div><div> t_on_reply("1");</div>
<div> t_on_failure("1");</div><div><br></div><div> # Check for digest</div><div> if (dummy_www_authorize(""))</div><div> {</div><div> xlog("L_INFO", "REGISTER: No Digest, sending challenge\n");</div>
<div> www_challenge("", "0");</div><div> exit;</div><div> }</div><div><div><br></div><div> # Digest was good if we get here</div><div> save("location", "0x02");</div>
<div><br></div><div> # Relay register to porta</div><div> t_relay("udp:<a href="http://216.151.151.100:5060">216.151.151.100:5060</a>");</div><div> 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. fix_natted_contact() and fix_natted_registrar() just aren'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>