<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>Hello,</p>
<p>you can set per tcp connection lifetime using tcpops module:</p>
<p> -
<a class="moz-txt-link-freetext" href="https://www.kamailio.org/docs/modules/stable/modules/tcpops.html">https://www.kamailio.org/docs/modules/stable/modules/tcpops.html</a></p>
<p>You can do that when you get the INVITE, before sending a
negative response from kamailio.cfg. Or, if you relay the invite,
set a failure route for it and do the operation there.</p>
<p>Cheers,<br>
Daniel<br>
</p>
<br>
<div class="moz-cite-prefix">On 07/11/16 23:26, Colin Morelli wrote:<br>
</div>
<blockquote
cite="mid:CAPtU-UpQfGaNM_NgoeEox0L1-4gRi85zzB0oo69tGXFAY-6bbg@mail.gmail.com"
type="cite">
<div dir="ltr">Hey all,
<div><br>
</div>
<div>Looking to figure out the best way to allow TCP connections
to stay alive for NAT'd clients, however, to protect against
people just opening TCP connections to the server, I'm hoping
to only keepalive TCP connections for connections that have
sent an INVITE and received a 200 OK.</div>
<div><br>
</div>
<div>Does this type of per-socket connection lifetime setting
exist?</div>
<div><br>
</div>
<div>For a bit more background: this is specifically for clients
that are using the TCP connection for an INVITE. They don't
register with the server, and as a result there's no active
flow timer for their connection. Is there a way to enable this
type of behavior without registering?</div>
<div><br>
</div>
<div>Best,</div>
<div>Colin</div>
</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://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>
Kamailio Advanced Training, Berlin, Nov 28-30, 2016 - <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a></pre>
</body>
</html>