From 1ac67c84d44d25c2c3383063d3f5c9a71fc258af Mon Sep 17 00:00:00 2001 From: Mike Pultz Date: Thu, 21 Nov 2024 01:42:44 -0500 Subject: [PATCH] manager.c: Add Processed Call Count to CoreStatus output 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 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main/manager.c b/main/manager.c index 68e4e87725..46eb1b2bdb 100644 --- a/main/manager.c +++ b/main/manager.c @@ -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; }