diff options
author | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-01-21 22:32:13 +0000 |
---|---|---|
committer | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-01-21 22:32:13 +0000 |
commit | 1a59b76f97ad075bbdddbb7c92f18760c7156bf5 (patch) | |
tree | 9a2ef31152a650815d2e3d6b4ea5c2372a3ae05b | |
parent | 9e213bacf9f23925a5bbccb0b639c76fc7361b19 (diff) |
Adding the QUEUENAME variable to the variables set using the setqueuevar option
in queues.conf.
Suggestion comes from Shaun2222 on IRC.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@99406 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r-- | apps/app_queue.c | 4 | ||||
-rw-r--r-- | configs/queues.conf.sample | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/apps/app_queue.c b/apps/app_queue.c index a2db787a7..a6b2d3f89 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -570,8 +570,8 @@ static void set_queue_variables(struct queue_ent *qe) 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); diff --git a/configs/queues.conf.sample b/configs/queues.conf.sample index 92c323773..fb4e9bd3d 100644 --- a/configs/queues.conf.sample +++ b/configs/queues.conf.sample @@ -173,6 +173,7 @@ shared_lastcall=no ; 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 |