[sr-dev] [kamailio] tcpops: implement event_route for unexpectedly closed tcp connections (4cc9545)

Armen Babikyan notifications at github.com
Thu Dec 24 02:50:48 CET 2015


To test, create the following event_route in your script:

    event_route[tcp:closed] {
     xlogl("L_INFO", "TCP connection closed: si=$si sp=$sp conid=$conid proto=$proto\n");
    }

Then connect to the server via TCP, TLS, WS, or WSS, and explicitly kill the connection between kamailio and the client using tcpkill or something similar, or alternatively, time out the TCP connection by unplugging a SIP phone or inserting IPtables rules to block traffic.  You should see event_route[tcp:closed] get executed.

Please let me know if you find issues with this approach.  Thanks!

---
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/commit/4cc9545b0056bcacf8a303259e629df6c754747d#commitcomment-15148606
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-dev/attachments/20151223/21fc5215/attachment.html>


More information about the sr-dev mailing list