From: Mike Pultz Date: Thu, 21 Nov 2024 06:42:44 +0000 (-0500) Subject: manager.c: Add Processed Call Count to CoreStatus output X-Git-Tag: 20.12.0-rc1~48 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=57f1a0814143dbce9ecda7e99a407e435c6f4d6f;p=thirdparty%2Fasterisk.git 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. (cherry picked from commit dd0b3e713a6498fb2434e03abb36a4f8cf53f631) --- diff --git a/main/manager.c b/main/manager.c index fa3f395b44..5b81420afb 100644 --- a/main/manager.c +++ b/main/manager.c @@ -6453,13 +6453,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; }