Yuriy Gorlichenko writes:
Not sure if it availible for 4.x Version but for 5.x There is a tcp connection closed event route https://kamailio.org/docs/modules/4.4.x/modules/tcpops.html#tcpops.f.tcp_ena... You can try to play around it to get ip that distorbs you.
My understanding is that TLS negotiation failure happens before the request is handled by the config.
-- Juha