Summary:ASTERISK-07995: [patch] run macro when queue member connected
Reporter:jmls (jmls)Labels:
Date Opened:2006-10-24 13:07:34Date Closed:2006-10-27 14:03:03
Versions:Frequency of
Environment:Attachments:( 0) app_queue.diff
( 1) app_queue.diff.20061025-1818
( 2) app_queue.diff.20061025-1855
( 3) app_queue.diff.20061027.1500
( 4) app_queue.diff.20062610.1047
( 5) changes.diff
Description:this patch allows you to specify a macro to run when a member is connected to a queue call. It also allows you to specify that certain variables are set when the member is connected.

patch attached.

disclaimer on file


if setinterfacevar is yes
MEMBERCALLS is the number of calls that interface has taken,
MEMBERLASTCALL is the last time the member took a call.
MEMBERPENALTY is the penalty of the member
MEMBERDYNAMIC indicates if a member is dynamic or not

if setqueueentryvar is yes
QEHOLDTIME callers hold time
QEORIGINALPOS original position of the caller in the queue

if setqueuevar is yes
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
Comments:By: jmls (jmls) 2006-10-25 12:20:39

new version of patch allows you to override the default macro for a queue by passing the macro as an option to the queue command

By: jmls (jmls) 2006-10-25 12:56:07

whoops. little bug fix now sets the queue variables ;)

By: jmls (jmls) 2006-10-26 04:49:28

moved the queue variables to a function so that they can be set when the queue entry leaves the queue. Thus, the Queue variables are now available when the queue application exits

By: jmls (jmls) 2006-10-26 04:50:25

I cannot delete the previous versions of the patches. The latest patch is  app_queue.diff.20062610.1047, please can someone delete the others. Thanks.

By: jmls (jmls) 2006-10-27 09:04:36

yet another patch. This adds the QUEUE_VARIABLES(<queuename>) function which sets the Queue variables described above. This means now that you can access  queue stats for a certain queue from within the dialplan.

By: BJ Weschke (bweschke) 2006-10-27 14:03:02

merged to /trunk. Thanks!