Queueu variables


#1

Hello.

It’s said in queues.conf:

[quote]; 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
; QUEUEHOLDTIME current average hold time
; QUEUECOMPLETED number of completed calls for the queue
; QUEUEABANDONED number of abandoned calls
; QUEUESRVLEVEL queue service level
; QUEUESRVLEVELPERF current service level performance
;
;setqueuevar=no[/quote]

But what’s the best way to read their values ?
I tried:

after Queue application in dialplan, but no success.

I also tried:

but also unsuccessful.

Seems that this is the same problem (at the bottom of the page, in comments): wiki.asterisk.org/wiki/display/ … _VARIABLES

But I have ‘setqueuevar=yes’ in my queue.


#2

Can you post relevant dialplan snippet and Asterisk CLI output?

–Satish Barot


#3
		Queue(${EXTEN},t,,,15);
		// some Queue stats
		NoOp(================================================================);
		NoOp(================================================================);
		NoOp(================================================================);
		NoOp(================================================================);
		NoOp(================================================================);
		NoOp(================================================================);
		NoOp(================================================================);
		Set(retcode=${QUEUE_VARIABLES(${EXTEN})});
		NoOp(retcode is ${retcode}, QUEUEMAX is ${QUEUEMAX});

I don’t see anything being executed after Queue application.


#4

Works.

[code] Queue(${EXTEN},t,25);

// to enable Queue statistics
NoOp(${QUEUE_VARIABLES(${EXTEN})});

NoOp(QUEUESTRATEGY is ${QUEUESTRATEGY});
NoOp(QUEUECALLS is ${QUEUECALLS});
NoOp(QUEUEHOLDTIME is ${QUEUEHOLDTIME});
NoOp(QUEUECOMPLETED is ${QUEUECOMPLETED});
NoOp(QUEUEABANDONED is ${QUEUEABANDONED});
NoOp(QUEUESRVLEVEL is ${QUEUESRVLEVEL});
NoOp(QUEUESRVLEVELPERF is ${QUEUESRVLEVELPERF})[/code]


#5

hi! i have the same problem. i need to get values on the variables and after save them on database mysql. Can somewone help me please!