]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
manager.c: Add Processed Call Count to CoreStatus output
authorMike Pultz <mike@mikepultz.com>
Thu, 21 Nov 2024 06:42:44 +0000 (01:42 -0500)
committerMike Pultz <mike@mikepultz.com>
Mon, 2 Dec 2024 12:55:09 +0000 (12:55 +0000)
This update adds the processed call count to the CoreStatus AMI Action responsie. This output is
similar to the values returned by "core show channels" or "core show calls" in the CLI.

UserNote: The current processed call count is now returned as CoreProcessedCalls from the
CoreStatus AMI Action.

main/manager.c

index 68e4e877259a06adefa1bb0668aa4eec318ecbc4..46eb1b2bdbde2df0788e2bab1aef70cb84a2ebd6 100644 (file)
@@ -6443,13 +6443,15 @@ static int action_corestatus(struct mansession *s, const struct message *m)
                        "CoreReloadDate: %s\r\n"
                        "CoreReloadTime: %s\r\n"
                        "CoreCurrentCalls: %d\r\n"
+                       "CoreProcessedCalls: %d\r\n"
                        "\r\n",
                        idText,
                        startupdate,
                        startuptime,
                        reloaddate,
                        reloadtime,
-                       ast_active_channels()
+                       ast_active_channels(),
+                       ast_processed_calls()
                        );
        return 0;
 }