<div dir="ltr">So long as the tcp socket is open your SBC should send the call back over the same socket. Now it can be that your SBC is seeing the socket as timing out. If you are using Kamailio you can have it send tcp keep alives every so often so that the socket stays up.<div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Dec 27, 2019 at 10:41 AM Benoit Panizzon <<a href="mailto:benoit.panizzon@imp.ch">benoit.panizzon@imp.ch</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi List<br>
<br>
I wonder how SIP via TCP is supposed to work. Not realy Asterisk<br>
related, but I hope you experts might be able to help out :-)<br>
<br>
One of our customers has a SIP device registering via a complex NAT. To<br>
benefit from TCP Connection Tracking, he choose TCP instead of UDP.<br>
<br>
So he expected, that an incoming call would be sent back to him on the<br>
already open TCP connection, making it easy to get through that NAT.<br>
<br>
This is not the case. Our SBC is attempting to initiate a new SIP TCP<br>
connection towards the NAT Firewall of the customer thus getting<br>
dropped because this is not the outgoing established connection opened<br>
during the registration.<br>
<br>
So, how should SIP via TCP work? Should one TCP session be used for all<br>
signaling of potentially multiple concurrent calls, as expected by our<br>
customer. Or is it usual to make one TCP session per call as observed?<br>
<br>
Mit freundlichen Grüssen<br>
<br>
-Benoît Panizzon-<br>
-- <br>
I m p r o W a r e   A G    -    Leiter Commerce Kunden<br>
______________________________________________________<br>
<br>
Zurlindenstrasse 29             Tel  +41 61 826 93 00<br>
CH-4133 Pratteln                Fax  +41 61 826 93 01<br>
Schweiz                         Web  <a href="http://www.imp.ch" rel="noreferrer" target="_blank">http://www.imp.ch</a><br>
______________________________________________________<br>
<br>
-- <br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" rel="noreferrer" target="_blank">http://www.api-digital.com</a> --<br>
<br>
Check out the new Asterisk community forum at: <a href="https://community.asterisk.org/" rel="noreferrer" target="_blank">https://community.asterisk.org/</a><br>
<br>
New to Asterisk? Start here:<br>
      <a href="https://wiki.asterisk.org/wiki/display/AST/Getting+Started" rel="noreferrer" target="_blank">https://wiki.asterisk.org/wiki/display/AST/Getting+Started</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
   <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" rel="noreferrer" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a></blockquote></div>