build-system: Allow building with static pjproject
[asterisk/asterisk.git] / main / asterisk.c
index ca560cd..da804e1 100644 (file)
@@ -4478,6 +4478,11 @@ static void asterisk_daemon(int isroot, const char *runuser, const char *rungrou
                exit(1);
        }
 
+       if (ast_pj_init()) {
+               printf("Failed: ast_pj_init\n%s", term_quit());
+               exit(1);
+       }
+
        if (app_init()) {
                printf("App core initialization failed.\n%s", term_quit());
                exit(1);