Merge the rest of the FullyBooted patch
[asterisk/asterisk.git] / main / manager.c
index 297e94f..f23cec8 100644 (file)
@@ -2740,6 +2740,9 @@ static int action_login(struct mansession *s, const struct message *m)
                ast_verb(2, "%sManager '%s' logged on from %s\n", (s->session->managerid ? "HTTP " : ""), s->session->username, ast_inet_ntoa(s->session->sin.sin_addr));
        }
        astman_send_ack(s, m, "Authentication accepted");
+       if (ast_test_flag(&ast_options, AST_OPT_FLAG_FULLY_BOOTED)) {
+               manager_event(EVENT_FLAG_SYSTEM, "FullyBooted", "Status: Fully Booted\r\n");
+       }
        return 0;
 }