This patch adds a new message bus API to Asterisk.
[asterisk/asterisk.git] / main / asterisk.c
index 1d53719..4e5e58c 100644 (file)
@@ -240,6 +240,7 @@ int daemon(int, int);  /* defined in libresolv of all places */
 #include "asterisk/aoc.h"
 #include "asterisk/uuid.h"
 #include "asterisk/sorcery.h"
+#include "asterisk/stasis.h"
 
 #include "../defaults.h"
 
@@ -4120,6 +4121,11 @@ int main(int argc, char *argv[])
                exit(1);
        }
 
+       if (stasis_init()) {
+               printf("Stasis initialization failed.\n%s", term_quit());
+               exit(1);
+       }
+
        ast_makesocket();
        sigemptyset(&sigs);
        sigaddset(&sigs, SIGHUP);