<div dir="ltr">Thanks Juha<div><br></div><div>That makes it somehow easier to understand my capture. My Kamailio must then have detected a broken TCP connection, though I cannot see why in the capture, neither in the log, but I only run on debug level 2.</div><div>It receives a 200 OK on port 37148, and then establishes 37150 to reply with an ACK. </div><div><br></div><div>However two seconds before receiving the 200 OK, there are some spurious retransmissions and out of order on 37148. Perhaps this has caused Kamailio to deem the connection bad, but it still receives data on it.</div><div>Now I assume that the providers server (Which also is flying Kamailio) should detect the new port, and continue using that. I got a trace from the provider, where there is no disturbance. Thus the server thinks that the connection is OK. </div><div><br></div><div>Now my next question is, what makes a Kamailio detect this change?</div><div>Is it a problem that I only rewrite To and From in the INVITE, thus the ACK contains some other values. <br></div><div><br></div><div><br></div><div>It is also a bit strange that I get this error exactly, the same place in the conversation every time I make a call. Somehow I suspect some NAT timeout in the router. (it is not carrier grade NAT).</div><div>Can I do anything to prevent a NAT timeout from the client side?</div><div><br></div><div><br></div><div>Another thing. I assume that sending my internal port in the From field, or any kind of advertising, should be ignored by the server.</div><div><br></div><div>Regards Kjeld</div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Den fre. 6. nov. 2020 kl. 07.45 skrev Juha Heinanen <<a href="mailto:jh@tutpro.com">jh@tutpro.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Kjeld Flarup writes:<br>
<br>
> How is TCP SIP actually supposed to handle a BYE, when the client is <br>
> behind NAT.<br>
<br>
Client behind NAT is supposed to keep its TCP connection to SIP Proxy<br>
alive and use it for all requests of the call. If the connection breaks<br>
for some reason, the client sets up a new one for the remaining<br>
requests.<br>
<br>
-- Juha<br>
<br>
_______________________________________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><p>--------------------- Med Liberalistiske Hilsner ----------------------</p><pre cols="72"> Civilingeniør, Kjeld Flarup - Mit sind er mere åbent end min tegnebog
Sofienlundvej 6B, 7560 Hjerm, Tlf: 40 29 41 49
Den ikke akademiske hjemmeside for liberalismen - <a href="http://www.liberalismen.dk" target="_blank">www.liberalismen.dk</a>
</pre></div></div>