aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-04-20 16:27:44 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-04-20 16:27:44 +0000
commit32fbbc1833bd2b0c67bb1d589e1fd04d29b10d2d (patch)
tree8d716803eb9bda90f88f691bcf0a090d3beafc8e
parent4908764c59163179ad69fb85206207f0c6e2e84c (diff)
add count of parked calls to 'show parkedcalls' (bug #4023)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5488 f38db490-d61c-443f-a65b-d21fe96a405b
-rwxr-xr-xres/res_features.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/res/res_features.c b/res/res_features.c
index 178e72a6d..508a2e690 100755
--- a/res/res_features.c
+++ b/res/res_features.c
@@ -1423,6 +1423,7 @@ static struct ast_cli_entry showfeatures =
static int handle_parkedcalls(int fd, int argc, char *argv[])
{
struct parkeduser *cur;
+ int numparked = 0;
ast_cli(fd, "%4s %25s (%-15s %-12s %-4s) %-6s \n", "Num", "Channel"
, "Context", "Extension", "Pri", "Timeout");
@@ -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 = cur->next;
+ numparked++;
}
+ ast_cli(fd, "%d parked call(s).\n",numparked);
ast_mutex_unlock(&parking_lock);