diff --git a/src/mod/event_handlers/mod_kazoo/kazoo_ei_utils.c b/src/mod/event_handlers/mod_kazoo/kazoo_ei_utils.c index 7a2e62c925..c1b792f490 100644 --- a/src/mod/event_handlers/mod_kazoo/kazoo_ei_utils.c +++ b/src/mod/event_handlers/mod_kazoo/kazoo_ei_utils.c @@ -519,8 +519,8 @@ switch_status_t create_acceptor() { char ipbuf[48]; const char *ip_addr; -#if ERLANG_MAJOR >= 10 - ei_init(); +#if (ERLANG_MAJOR == 10 && ERLANG_MINOR >= 3) || ERLANG_MAJOR >= 11 + ei_init(); #endif /* if the config has specified an erlang release compatibility then pass that along to the erlang interface */