]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
asterisk: Add verbose message stating support status.
authorJoshua C. Colp <jcolp@sangoma.com>
Mon, 12 Oct 2020 10:30:52 +0000 (07:30 -0300)
committerJoshua C. Colp <jcolp@sangoma.com>
Mon, 12 Oct 2020 10:32:13 +0000 (07:32 -0300)
This change outputs a message at startup and when a remote
console is connected stating that this branch is no longer
receiving bug fixes and to consult the Asterisk Versions wiki
page for status information.

Change-Id: I6b8a77d33e338a3e52dd65f998d8a07e4d16aa2e

main/asterisk.c

index 47e8d4f9d014909709d27b41e4098185a2cac46b..f9bcc78660226d35cb8363b6a1349e88e659e7a6 100644 (file)
@@ -307,6 +307,10 @@ int daemon(int, int);  /* defined in libresolv of all places */
                 "This is free software, with components licensed under the GNU General Public\n" \
                 "License version 2 and other licenses; you are welcome to redistribute it under\n" \
                 "certain conditions. Type 'core show license' for details.\n" \
+                "=========================================================================\n" \
+                "Please note that this version of Asterisk no longer receives bug fixes.\n" \
+                "Consult the following URL for Asterisk version support status information:\n" \
+                "https://wiki.asterisk.org/wiki/display/AST/Asterisk+Versions\n" \
                 "=========================================================================\n", ast_get_version()) \
 
 static int ast_socket = -1;            /*!< UNIX Socket for allowing remote control */
@@ -4332,6 +4336,12 @@ static void asterisk_daemon(int isroot, const char *runuser, const char *rungrou
        run_startup_commands();
        ast_sd_notify("READY=1");
 
+       ast_verb(0, COLORIZE_FMT "\n", COLORIZE(COLOR_RED, 0, "========================================================================="));
+       ast_verb(0, COLORIZE_FMT "\n", COLORIZE(COLOR_RED, 0, "Please note that this version of Asterisk no longer receives bug fixes."));
+       ast_verb(0, COLORIZE_FMT "\n", COLORIZE(COLOR_RED, 0, "Consult the following URL for Asterisk version support status information:"));
+       ast_verb(0, COLORIZE_FMT "\n", COLORIZE(COLOR_RED, 0, "https://wiki.asterisk.org/wiki/display/AST/Asterisk+Versions"));
+       ast_verb(0, COLORIZE_FMT "\n", COLORIZE(COLOR_RED, 0, "========================================================================="));
+
        ast_verb(0, COLORIZE_FMT "\n", COLORIZE(COLOR_BRGREEN, 0, "Asterisk Ready."));
 
        logger_queue_start();