aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-11-09 05:38:40 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-11-09 05:38:40 +0000
commit52a812d4e250eb2c47f1d9fc730a8ed26993e217 (patch)
tree931b2c50232a559692feffc2dc94c9564bbac83d /apps
parent300e7eb4917bb0835ad664299faa0a7c89a52802 (diff)
Show status of agents...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4195 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rwxr-xr-xapps/app_queue.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/apps/app_queue.c b/apps/app_queue.c
index f0fbbbbfc..4e669c725 100755
--- a/apps/app_queue.c
+++ b/apps/app_queue.c
@@ -584,6 +584,17 @@ static int update_status(struct ast_call_queue *q, struct member *member, int st
while(cur) {
if (member == cur) {
cur->status = status;
+ manager_event(EVENT_FLAG_AGENT, "QueueMemberStatus",
+ "Queue: %s\r\n"
+ "Location: %s/%s\r\n"
+ "Membership: %s\r\n"
+ "Penalty: %d\r\n"
+ "CallsTaken: %d\r\n"
+ "LastCall: %ld\r\n"
+ "Status: %d\r\n"
+ "\r\n",
+ q->name, cur->tech, cur->loc, cur->dynamic ? "dynamic" : "static",
+ cur->penalty, cur->calls, cur->lastcall, cur->status);
break;
}
cur = cur->next;
@@ -2281,10 +2292,11 @@ static int manager_queues_status( struct mansession *s, struct message *m )
"Penalty: %d\r\n"
"CallsTaken: %d\r\n"
"LastCall: %ld\r\n"
+ "Status: %d\r\n"
"%s"
"\r\n",
q->name, mem->tech, mem->loc, mem->dynamic ? "dynamic" : "static",
- mem->penalty, mem->calls, mem->lastcall, idText);
+ mem->penalty, mem->calls, mem->lastcall, mem->status, idText);
/* List Queue Entries */