[SR-Users] event for new tcp connection from client

camille.oudot at orange.com camille.oudot at orange.com
Tue Dec 13 18:00:21 CET 2016


Le Tue, 13 Dec 2016 07:38:06 -0700,
Andy <agrawal.ananda at 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_set_connection_lifetime

(the example for this function is doing precisely that)

Regards,

-- 
Camille

_________________________________________________________________________________________________________________________

Ce message et ses pieces jointes peuvent contenir des informations confidentielles ou privilegiees et ne doivent donc
pas etre diffuses, exploites ou copies sans autorisation. Si vous avez recu ce message par erreur, veuillez le signaler
a l'expediteur et le detruire ainsi que les pieces jointes. Les messages electroniques etant susceptibles d'alteration,
Orange decline toute responsabilite si ce message a ete altere, deforme ou falsifie. Merci.

This message and its attachments may contain confidential or privileged information that may be protected by law;
they should not be distributed, used or copied without authorisation.
If you have received this email in error, please notify the sender and delete this message and its attachments.
As emails may be altered, Orange is not liable for messages that have been modified, changed or falsified.
Thank you.




More information about the sr-users mailing list