[SR-Users] TCP Keepalive for NAT'd Clients

Daniel-Constantin Mierla miconda at gmail.com
Tue Nov 8 09:46:11 CET 2016


Hello,

you can set per tcp connection lifetime using tcpops module:

   - https://www.kamailio.org/docs/modules/stable/modules/tcpops.html

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.

Cheers,
Daniel


On 07/11/16 23:26, Colin Morelli wrote:
> Hey all,
>
> 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.
>
> Does this type of per-socket connection lifetime setting exist?
>
> 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?
>
> Best,
> Colin
>
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

-- 
Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Kamailio Advanced Training, Berlin, Nov 28-30, 2016 - http://www.asipto.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20161108/3f690b25/attachment.html>


More information about the sr-users mailing list