Skip to content
Snippets Groups Projects
Commit f6ddf9b9 authored by Kevin P. Fleming's avatar Kevin P. Fleming
Browse files

add count of parked calls to 'show parkedcalls' (bug #4023)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5488 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent 6d05d785
Branches
Tags
No related merge requests found
...@@ -1423,6 +1423,7 @@ static struct ast_cli_entry showfeatures = ...@@ -1423,6 +1423,7 @@ static struct ast_cli_entry showfeatures =
static int handle_parkedcalls(int fd, int argc, char *argv[]) static int handle_parkedcalls(int fd, int argc, char *argv[])
{ {
struct parkeduser *cur; struct parkeduser *cur;
int numparked = 0;
ast_cli(fd, "%4s %25s (%-15s %-12s %-4s) %-6s \n", "Num", "Channel" ast_cli(fd, "%4s %25s (%-15s %-12s %-4s) %-6s \n", "Num", "Channel"
, "Context", "Extension", "Pri", "Timeout"); , "Context", "Extension", "Pri", "Timeout");
...@@ -1436,7 +1437,9 @@ static int handle_parkedcalls(int fd, int argc, char *argv[]) ...@@ -1436,7 +1437,9 @@ static int handle_parkedcalls(int fd, int argc, char *argv[])
,cur->priority, cur->start.tv_sec + (cur->parkingtime/1000) - time(NULL)); ,cur->priority, cur->start.tv_sec + (cur->parkingtime/1000) - time(NULL));
cur = cur->next; cur = cur->next;
numparked++;
} }
ast_cli(fd, "%d parked call(s).\n",numparked);
ast_mutex_unlock(&parking_lock); ast_mutex_unlock(&parking_lock);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment