From: lazedo Date: Tue, 25 Jun 2019 14:54:47 +0000 (+0000) Subject: FS-11732 [mod_kazoo] ei_init added in OTP 21.3 X-Git-Tag: v1.8.7~1^2~11^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ad7db399999b647bfb18a25a622069f31c3dd730;p=thirdparty%2Ffreeswitch.git FS-11732 [mod_kazoo] ei_init added in OTP 21.3 --- 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 */