]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-11732 [mod_kazoo] ei_init added in OTP 21.3
authorlazedo <luis.azedo@factorlusitano.com>
Tue, 25 Jun 2019 14:54:47 +0000 (14:54 +0000)
committerlazedo <luis.azedo@factorlusitano.com>
Tue, 25 Jun 2019 14:54:47 +0000 (14:54 +0000)
src/mod/event_handlers/mod_kazoo/kazoo_ei_utils.c

index 7a2e62c925c53a9906c9510a5ef84a0e1a0deac3..c1b792f490b4529806c38de8fec18103d7d11f88 100644 (file)
@@ -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 */