wangduanduan left a comment (kamailio/kamailio#4198)
i have try 6.0.1, the kafka_send also not work in event_route[tcp:closed]
28(89) DEBUG: <core> [core/tcp_main.c:3717]: tcp_emit_closed_event(): TCP closed event creation triggered (reason: 1) 28(89) DEBUG: tcpops [tcpops.c:311]: tcpops_handle_tcp_closed(): received TCP closed event 28(89) DEBUG: tcpops [tcpops.c:252]: tcpops_tcp_closed_run_route(): event reason id: 1 28(89) ERROR: <script>: tcp:timeout 28(89) ERROR: kafka [kfk.c:883]: kfk_message_send(): kafka module is unusable: no kafka object! Skip sending message, message lost!28(89) DEBUG: kafka [kfk.c:853]: kfk_topic_get(): Topic name match: kamailio_event_bus 28(89) ERROR: kafka [kfk.c:892]: kfk_message_send(): kafka module is unusable: child init NOT ok! Skip sending message, message lost!28(89) DEBUG: kafka [kfk.c:1083]: kfk_stats_add(): Adding stats: (topic: kamailio_event_bus) (error: -172) 28(89) DEBUG: kafka [kfk.c:1096]: kfk_stats_add(): General stats: total = 5 error = 4 28(89) DEBUG: kafka [kfk.c:1101]: kfk_stats_add(): Topic search: kamailio_event_bus 28(89) DEBUG: kafka [kfk.c:1108]: kfk_stats_add(): Topic match: kamailio_event_bus 28(89) DEBUG: kafka [kfk.c:1144]: kfk_stats_add(): Topic stats (kamailio_event_bus): total = 5 error = 4 28(89) ERROR: kafka [kafka_mod.c:231]: w_kafka_send(): Cannot send kafka (topic: kamailio_event_bus) message: tcp:timeout