aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2003-06-24 21:33:37 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2003-06-24 21:33:37 +0000
commitc352fa07eeb3516a50d46780235a25e22910e249 (patch)
tree1ecd0e46a090976c0f5d88e09939f6b9ddf4f891 /apps
parente9f1b71aa76ed5eb56e5b10e5e5ebb0118d4304e (diff)
Add count to management event
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1115 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rwxr-xr-xapps/app_queue.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/app_queue.c b/apps/app_queue.c
index d78a81e99..ab756132b 100755
--- a/apps/app_queue.c
+++ b/apps/app_queue.c
@@ -156,8 +156,8 @@ static int join_queue(char *queuename, struct queue_ent *qe)
q->count++;
res = 0;
manager_event(EVENT_FLAG_CALL, "Join",
- "Channel: %s\r\nQueue: %s\r\nPosition: %d\r\n",
- qe->chan->name, q->name, qe->pos );
+ "Channel: %s\r\nQueue: %s\r\nPosition: %d\r\nCount: %d\r\n",
+ qe->chan->name, q->name, qe->pos, q->count );
#if 0
ast_log(LOG_NOTICE, "Queue '%s' Join, Channel '%s', Position '%d'\n", q->name, qe->chan->name, qe->pos );
#endif
@@ -222,8 +222,8 @@ static void leave_queue(struct queue_ent *qe)
/* Take us out of the queue */
manager_event(EVENT_FLAG_CALL, "Leave",
- "Channel: %s\r\nQueue: %s\r\n",
- qe->chan->name, q->name );
+ "Channel: %s\r\nQueue: %s\r\nCount: %d\r\n",
+ qe->chan->name, q->name, q->count - 1);
#if 0
ast_log(LOG_NOTICE, "Queue '%s' Leave, Channel '%s'\n", q->name, qe->chan->name );
#endif