[asterisk-commits] mmichelson: trunk r99406 - in /trunk: apps/ configs/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Jan 22 10:39:51 CST 2008


Author: mmichelson
Date: Mon Jan 21 16:32:13 2008
New Revision: 99406

URL: http://svn.digium.com/view/asterisk?view=rev&rev=99406
Log:
Adding the QUEUENAME variable to the variables set using the setqueuevar option 
in queues.conf.

Suggestion comes from Shaun2222 on IRC.


Modified:
    trunk/apps/app_queue.c
    trunk/configs/queues.conf.sample

Change Statistics:
 trunk/apps/app_queue.c           |    4 ++--
 trunk/configs/queues.conf.sample |    1 +
 2 files changed, 3 insertions(+), 2 deletions(-)

Modified: trunk/apps/app_queue.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_queue.c?view=diff&rev=99406&r1=99405&r2=99406
==============================================================================
--- trunk/apps/app_queue.c (original)
+++ trunk/apps/app_queue.c Mon Jan 21 16:32:13 2008
@@ -570,8 +570,8 @@
 		sl = 100 * ((float) qe->parent->callscompletedinsl / (float) qe->parent->callscompleted);
 
 	snprintf(interfacevar,sizeof(interfacevar),
-		"QUEUEMAX=%d|QUEUESTRATEGY=%s|QUEUECALLS=%d|QUEUEHOLDTIME=%d|QUEUECOMPLETED=%d|QUEUEABANDONED=%d|QUEUESRVLEVEL=%d|QUEUESRVLEVELPERF=%2.1f",
-		qe->parent->maxlen, int2strat(qe->parent->strategy), qe->parent->count, qe->parent->holdtime, qe->parent->callscompleted,
+		"QUEUENAME=%s|QUEUEMAX=%d|QUEUESTRATEGY=%s|QUEUECALLS=%d|QUEUEHOLDTIME=%d|QUEUECOMPLETED=%d|QUEUEABANDONED=%d|QUEUESRVLEVEL=%d|QUEUESRVLEVELPERF=%2.1f",
+		qe->parent->name, qe->parent->maxlen, int2strat(qe->parent->strategy), qe->parent->count, qe->parent->holdtime, qe->parent->callscompleted,
 		qe->parent->callsabandoned,  qe->parent->servicelevel, sl);
 	
 	pbx_builtin_setvar(qe->chan, interfacevar); 

Modified: trunk/configs/queues.conf.sample
URL: http://svn.digium.com/view/asterisk/trunk/configs/queues.conf.sample?view=diff&rev=99406&r1=99405&r2=99406
==============================================================================
--- trunk/configs/queues.conf.sample (original)
+++ trunk/configs/queues.conf.sample Mon Jan 21 16:32:13 2008
@@ -173,6 +173,7 @@
 ; If set to yes, the following variables will be set
 ; just prior to the caller being bridged with a queue member
 ; and just prior to the caller leaving the queue
+; QUEUENAME name of the queue
 ; QUEUEMAX maxmimum number of calls allowed
 ; QUEUESTRATEGY the strategy of the queue; 
 ; QUEUECALLS number of calls currently in the queue




More information about the asterisk-commits mailing list