<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hello,<br>
<br>
yes, skipping the nat processing actions for requests coming from
presence server is good solution.<br>
<br>
Cheers,<br>
Daniel<br>
<br>
<div class="moz-cite-prefix">On 12/12/12 9:36 PM, Owen Lynch wrote:<br>
</div>
<blockquote
cite="mid:CAKHLOhtm2G9ZKe4arot8QjLTWwDV0GUDtT-8ujAJ3kUkChCxqA@mail.gmail.com"
type="cite">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("19")) {</div>
<div> if (is_method("REGISTER")) {</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>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla - <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a></pre>
</body>
</html>