mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-06 04:30:28 +00:00
Show status of agents...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4195 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -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 */
|
||||
|
||||
|
Reference in New Issue
Block a user