Idefisk
Tools
Tutorials
Reviews
VoIP Providers
Archives
AsteriskGuru Archives
Mailing List Archives
FAQ
Search
Memberlist
Usergroups
Register
Profile
Log in to check your private messages
Log in
[Asterisk-cvs] asterisk/apps app_queue.c,1.32,1.33
AsteriskGuru Archives Forum Index
->
Asterisk-CVS
View previous topic
::
View next topic
Author
Message
markster at lists.digium.
Guest
Posted: Mon Sep 08, 2003 4:43 pm
Post subject: [Asterisk-cvs] asterisk/apps app_queue.c,1.32,1.33
Update of /usr/cvsroot/asterisk/apps
In directory mongoose.digium.com:/tmp/cvs-serv30911/apps
Modified Files:
app_queue.c
Log Message:
First of Jayson's manager patches
Index: app_queue.c
===================================================================
RCS file: /usr/cvsroot/asterisk/apps/app_queue.c,v
retrieving revision 1.32
retrieving revision 1.33
diff -C2 -d -r1.32 -r1.33
*** app_queue.c 23 Aug 2003 02:11:44 -0000 1.32
--- app_queue.c 8 Sep 2003 16:44:36 -0000 1.33
***************
*** 1408,1416 ****
time_t now;
int pos;
struct ast_call_queue *q;
struct queue_ent *qe;
! astman_send_ack(s, "Queue status will follow");
time(&now);
q = queues;
while(q) {
ast_mutex_lock(&q->lock);
--- 1408,1421 ----
time_t now;
int pos;
+ char *id = astman_get_header(m,"ActionID");
+ char idText[256] = "";
struct ast_call_queue *q;
struct queue_ent *qe;
! astman_send_ack(s, m, "Queue status will follow");
time(&now);
q = queues;
+ if (id && &id) {
+ snprintf(idText,256,"ActionID: %s\r\n",id);
+ }
while(q) {
ast_mutex_lock(&q->lock);
***************
*** 1419,1424 ****
"Max: %d\r\n"
"Calls: %d\r\n"
"\r\n",
! q->name, q->maxlen, q->count);
#if 0
/* Do we care about queue members? */
--- 1424,1430 ----
"Max: %d\r\n"
"Calls: %d\r\n"
+ "%s"
"\r\n",
! q->name, q->maxlen, q->count,idText);
#if 0
/* Do we care about queue members? */
***************
*** 1434,1439 ****
"CallerID: %s\r\n"
"Wait: %ld\r\n"
"\r\n",
! q->name, pos++, qe->chan->name, (qe->chan->callerid ? qe->chan->callerid : ""), now - qe->start);
ast_mutex_unlock(&q->lock);
q = q->next;
--- 1440,1446 ----
"CallerID: %s\r\n"
"Wait: %ld\r\n"
+ "%s"
"\r\n",
! q->name, pos++, qe->chan->name, (qe->chan->callerid ? qe->chan->callerid : ""), now - qe->start), idText;
ast_mutex_unlock(&q->lock);
q = q->next;
Back to top
Display posts from previous:
All Posts
1 Day
7 Days
2 Weeks
1 Month
3 Months
6 Months
1 Year
Oldest First
Newest First
AsteriskGuru Archives Forum Index
->
Asterisk-CVS
All times are GMT
Page
1
of
1
Jump to:
Select a forum
Asterisk Mailing Lists
----------------
Asterisk-Users
Asterisk-Dev
Asterisk-CVS
Asterisk-Biz
Asterisk-Doc
Asterisk-BSD
Asterisk-Announce
Asterisk Call Centers
Asterisk-Video
Asterisk-Speech-Rec
Bristuff-Users
You
cannot
post new topics in this forum
You
cannot
reply to topics in this forum
You
cannot
edit your posts in this forum
You
cannot
delete your posts in this forum
You
cannot
vote in polls in this forum
Powered by
phpBB
© 2001, 2005 phpBB Group