Hi,<div><br></div><div>we have 2 separate instances of kamailio running as a SIP proxy and presence server. The proxy uses the nathelper module to correctly change the Contact headers of client requests. However it also does the same for notify requests from the presence server, which results in incorrect RURI from subsequent client subscribes. The NATDETECT route is shown below, I plan to leave the existing nat_uac_test but also explicitly skip the fix_nated...() calls for requests from the presence server. Does this seem reasonable?</div>
<div><br></div><div><div># Caller NAT detection route</div><div>route[NATDETECT] {</div><div>#!ifdef WITH_NAT</div><div>        force_rport();</div><div>        if (nat_uac_test(&quot;19&quot;)) {</div><div>                if (is_method(&quot;REGISTER&quot;)) {</div>
<div>                        fix_nated_register();</div><div>                } else {</div><div>                        fix_nated_contact();</div><div>                }</div><div>                setflag(FLT_NATS);</div><div>
        }</div><div>#!endif</div><div>        return;</div><div>}</div></div><div><br></div><div>Thanks,</div><div>Owen Lynch</div>