similar to tcp closed, can this be achieved when a client is connect to tcp
-- View this message in context: http://sip-router.1086192.n5.nabble.com/event-for-new-tcp-connection-from-cl... Sent from the Users mailing list archive at Nabble.com.
Is this a question or a wish? If it is a question, you have to detail what you need to achieve and maybe there are alternatives.
If it is a request for a new feature, add it to the bug tracker in the github project.
Cheers, Daniel
On 13/12/2016 00:16, Andy wrote:
similar to tcp closed, can this be achieved when a client is connect to tcp
-- View this message in context: http://sip-router.1086192.n5.nabble.com/event-for-new-tcp-connection-from-cl... Sent from the Users mailing list archive at Nabble.com.
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Hi Daniel,
I want to track when clients connect to SIP Proxy via TCP, and do not send Register for certain period of time and finally cleanup this tcp connection
-- View this message in context: http://sip-router.1086192.n5.nabble.com/event-for-new-tcp-connection-from-cl... Sent from the Users mailing list archive at Nabble.com.
Le Tue, 13 Dec 2016 07:38:06 -0700, Andy agrawal.ananda@gmail.com a écrit :
I want to track when clients connect to SIP Proxy via TCP, and do not send Register for certain period of time and finally cleanup this tcp connection
Hi Andy,
to achieve this, I'm doing the following:
set a short default TCP connection lifetime (e.g. 10s)
http://www.kamailio.org/wiki/cookbooks/4.4.x/core#tcp_connection_lifetime
then in the routing script, whenever I consider that the connection should be kept, use tcp_set_connection_lifetime() from the tcpops module to raise its lifetime:
http://www.kamailio.org/docs/modules/4.4.x/modules/tcpops.html#tcpops.f.tcp_...
(the example for this function is doing precisely that)
Regards,
Hi Camille,
thanks for the suggestion, tcp_connection_lifetime works on idle connections, but what if the client sent crlf, I want to kill the connections which have not sent REGISTER request yet.
also I did a telnet to kamailio on port 5060, with tcp_connection_lifetime=5, the connection is never destroyed.
-- View this message in context: http://sip-router.1086192.n5.nabble.com/event-for-new-tcp-connection-from-cl... Sent from the Users mailing list archive at Nabble.com.
tcp_connection_lifetime works with tcp connection (while using tcp port), not when using tls port
-- View this message in context: http://sip-router.1086192.n5.nabble.com/event-for-new-tcp-connection-from-cl... Sent from the Users mailing list archive at Nabble.com.
found that it is modparam("tls", "connection_timeout", 60) for tls
-- View this message in context: http://sip-router.1086192.n5.nabble.com/event-for-new-tcp-connection-from-cl... Sent from the Users mailing list archive at Nabble.com.