]> 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 Colp <jcolp@sangoma.com>
Mon, 12 Oct 2020 10:36:36 +0000 (05:36 -0500)
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 a028611dba656d24ace202ae047c8647d54e721f..94d791b9e7344f84a2b1e64e750d5da15cf952cc 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 */
@@ -4193,6 +4197,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();