Hello,
yes, skipping the nat processing actions for requests coming from
presence server is good solution.
Cheers,
Daniel
On 12/12/12 9:36 PM, Owen Lynch wrote:
Hi,
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?
# Caller NAT detection route
route[NATDETECT] {
#!ifdef WITH_NAT
force_rport();
if (nat_uac_test("19")) {
if (is_method("REGISTER")) {
fix_nated_register();
} else {
fix_nated_contact();
}
setflag(FLT_NATS);
}
#!endif
return;
}
Thanks,
Owen Lynch
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users(a)lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
--
Daniel-Constantin Mierla -
http://www.asipto.com
http://twitter.com/#!/miconda -
http://www.linkedin.com/in/miconda