It seems mod_kazoo is primarily originated from mod_erlang_event. I understand performance issues & limitations, but it appears mod_erlang_event has not been updated in decade! I'm trying mod_erlang_event & seems register_event_handler call fails and after doing some basic comparisons here are few things I found:
#1- In mod_kazoo we are using write() API instead FreeSwitch switch_socket_send(). It did solve the issues but curious why ?
write(listener->sockdes, msgbuf, index)
switch_socket_send(sock, msgbuf, (switch_size_t *) &index);
#2 ei_init() is also added in kz_erl_init & teardown kz_erl_shutdown() for new Erlang releases.
Please share if there any other known issues that can be shared and we can port in mod_erlang_event module
Thanks a lot