Klaus<div><br></div><div>I attached the ngrep you asked me to this email.</div><div><br></div><div>Regards,</div><div>Pascal<br><div><br></div><div><br><br><div class="gmail_quote">On Wed, Apr 14, 2010 at 12:21 PM, Klaus Darilion <span dir="ltr">&lt;<a href="mailto:klaus.mailinglists@pernau.at">klaus.mailinglists@pernau.at</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">The contact after fix_nated_contact() should also contain ;transport=tcp. Thus, Kamailio should relay the BYE with TCP.<br>


<br>
Can you show an ngrep dump (ngrep -W byline -t -q -P &quot;&quot; port 5060) of the problematic scenario?<br>
<br>
regards<br>
klaus<br>
<br>
PS: A more standard-conform way of rewriting the SDP is to use the add_contact_alias() and handle_ruri_alias() functions:<br>
<a href="http://sip-router.org/docbook/sip-router/branch/master/modules_k/nathelper/nathelper.html#id2601711" target="_blank">http://sip-router.org/docbook/sip-router/branch/master/modules_k/nathelper/nathelper.html#id2601711</a><br>


<br>
regards<br>
klaus<br>
<br>
Am 14.04.2010 12:06, schrieb Pascal Maugeri:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div></div><div class="h5">
Hi<br>
<br>
I need some &quot;guidelines&quot; to troubleshoot the following issue:<br>
<br>
a) A is behind NAT<br>
<br>
b) B is not behind NAT<br>
<br>
c) A calls B, SIP INVITE is sent over TCP<br>
<br>
d) A&#39;s firewall does NAT and changes the source port to let&#39;s say p1<br>
<br>
e) B releases the call and sends BYE over UDP<br>
<br>
f) Kamailio sends the BYE to A, over UDP, to the NATed source port p1 ?!<br>
<br>
2 comments:<br>
- This scenario works perfectly when A is the one who disconnects the<br>
call. and of course when no NAT is involved everything works ok<br>
- if works when I comment the line &quot;fix_nated_contact()&quot; in the<br>
route[NAT] block:<br>
<br>
route[NAT]{<br>
#!ifdef WITH_NAT<br>
         force_rport();<br>
         #if (nat_uac_test(&quot;19&quot;)) {<br>
         if (nat_uac_test(&quot;3&quot;)) {<br>
                 if (method==&quot;REGISTER&quot;) {<br>
                         setbflag(10);<br>
                         fix_nated_register();<br>
                 } else {<br>
                         #fix_nated_contact();<br>
[...]<br>
<br>
Any hint is very welcome.<br>
<br>
Cheers<br>
Pascal<br>
<br>
<br>
<br></div></div>
_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote>
</blockquote></div><br></div></div>