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

Colin Morelli colin.morelli at gmail.com
Tue Nov 8 14:44:12 CET 2016


Don't know how I missed this. Thanks, Daniel!

Best,
Colin

On Tue, Nov 8, 2016 at 3:46 AM Daniel-Constantin Mierla <miconda at gmail.com>
wrote:

> 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 listsr-users at lists.sip-router.orghttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
>
> --
> Daniel-Constantin Mierlahttp://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
> Kamailio Advanced Training, Berlin, Nov 28-30, 2016 - http://www.asipto.com
>
> _______________________________________________
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20161108/b19638a6/attachment.html>


More information about the sr-users mailing list