Asterisk 1.8.10.1~dfsg-1ubuntu1 Trying to build a simple announcement of the queue status. QUEUEHOLDTIME is always zero. What am I doing wrong? queues.conf [general] autofill=yes shared_lastcall=yes [StandardQueue](!) musicclass=default strategy=rrmemory joinempty=no leavewhenempty=yes ringinuse=no announce-frequency = 30 min-announce-frequency = 15 announce-holdtime = yes|no|once announce-position = limit announce-position-limit = 5 announce-round-seconds = 10 setinterfacevar = yes setqueueentryvar = yes setqueuevar = yes [sales](StandardQueue) ; create the sales queue using the parameters in the StandardQueue template extensions.conf exten => 812,1,NoOp(queue status) same =>n,Set(LOGGEDIN=${QUEUE_MEMBER(sales,logged)}) same =>n,Set(READY=${QUEUE_MEMBER(sales,ready)}) same =>n,Set(WAITING=${QUEUE_WAITING_COUNT(sales)}) same =>n,Set(STUFF=${QUEUE_VARIABLES(sales)}) same =>n,Verbose(waiting: ${WAITING} calls in queue: ${QUEUECALLS} avg hold: ${QUEUEHOLDTIME} logged in: ${LOGGEDIN} ready: ${READY}) Regardless of how long a caller has been waiting in the queue, the output is: -- Executing [812 at LocalSets:1] NoOp("SIP/08000F3BE07C-00000048", "queue status") in new stack -- Executing [812 at LocalSets:2] Set("SIP/08000F3BE07C-00000048", "LOGGEDIN=1") in new stack -- Executing [812 at LocalSets:3] Set("SIP/08000F3BE07C-00000048", "READY=1") in new stack -- Executing [812 at LocalSets:4] Set("SIP/08000F3BE07C-00000048", "WAITING=1") in new stack -- Executing [812 at LocalSets:5] Set("SIP/08000F3BE07C-00000048", "STUFF=0") in new stack -- Executing [812 at LocalSets:6] Verbose("SIP/08000F3BE07C-00000048", "waiting: 1 calls in queue: 1 avg hold: 0 logged in: 1 ready: 1") in new stack waiting: 1 calls in queue: 1 avg hold: 0 logged in: 1 ready: 1
What do you get if you run a "queue show sales"? l. 2012/9/26 Mitch Claborn <mitch_ml at claborn.net>> Asterisk 1.8.10.1~dfsg-1ubuntu1 > > Trying to build a simple announcement of the queue status. QUEUEHOLDTIME > is always zero. What am I doing wrong? > > queues.conf > [general] > autofill=yes > shared_lastcall=yes > > [StandardQueue](!) > musicclass=default > strategy=rrmemory > joinempty=no > leavewhenempty=yes > ringinuse=no > announce-frequency = 30 > min-announce-frequency = 15 > announce-holdtime = yes|no|once > announce-position = limit > announce-position-limit = 5 > announce-round-seconds = 10 > setinterfacevar = yes > setqueueentryvar = yes > setqueuevar = yes > > [sales](StandardQueue) ; create the sales queue using the parameters in > the StandardQueue template > > extensions.conf > exten => 812,1,NoOp(queue status) > same =>n,Set(LOGGEDIN=${QUEUE_MEMBER(sales,logged)}) > same =>n,Set(READY=${QUEUE_MEMBER(sales,ready)}) > same =>n,Set(WAITING=${QUEUE_WAITING_COUNT(sales)}) > same =>n,Set(STUFF=${QUEUE_VARIABLES(sales)}) > same =>n,Verbose(waiting: ${WAITING} calls in queue: ${QUEUECALLS} avg > hold: ${QUEUEHOLDTIME} logged in: ${LOGGEDIN} ready: ${READY}) > > Regardless of how long a caller has been waiting in the queue, the output > is: > > -- Executing [812 at LocalSets:1] NoOp("SIP/08000F3BE07C-00000048", > "queue status") in new stack > -- Executing [812 at LocalSets:2] Set("SIP/08000F3BE07C-00000048", > "LOGGEDIN=1") in new stack > -- Executing [812 at LocalSets:3] Set("SIP/08000F3BE07C-00000048", > "READY=1") in new stack > -- Executing [812 at LocalSets:4] Set("SIP/08000F3BE07C-00000048", > "WAITING=1") in new stack > -- Executing [812 at LocalSets:5] Set("SIP/08000F3BE07C-00000048", > "STUFF=0") in new stack > -- Executing [812 at LocalSets:6] Verbose("SIP/08000F3BE07C-00000048", > "waiting: 1 calls in queue: 1 avg hold: 0 logged in: 1 ready: 1") in new > stack > waiting: 1 calls in queue: 1 avg hold: 0 logged in: 1 ready: 1 > > > > > > > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > New to Asterisk? Join us for a live introductory webinar every Thurs: > http://www.asterisk.org/hello > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >-- Loway - home of QueueMetrics - http://queuemetrics.com Test-drive WombatDialer beta @ http://wombatdialer.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20120927/df9bc767/attachment.htm>
On Thu, Sep 27, 2012 at 2:39 AM, Mitch Claborn <mitch_ml at claborn.net> wrote:> Asterisk 1.8.10.1~dfsg-1ubuntu1 > > Trying to build a simple announcement of the queue status. QUEUEHOLDTIME > is always zero. What am I doing wrong? > > queues.conf > [general] > autofill=yes > shared_lastcall=yes > > [StandardQueue](!) > musicclass=default > strategy=rrmemory > joinempty=no > leavewhenempty=yes > ringinuse=no > announce-frequency = 30 > min-announce-frequency = 15 > announce-holdtime = yes|no|once > announce-position = limit > announce-position-limit = 5 > announce-round-seconds = 10 > setinterfacevar = yes > setqueueentryvar = yes > setqueuevar = yes > > [sales](StandardQueue) ; create the sales queue using the parameters in > the StandardQueue template > > extensions.conf > exten => 812,1,NoOp(queue status) > same =>n,Set(LOGGEDIN=${QUEUE_**MEMBER(sales,logged)}) > same =>n,Set(READY=${QUEUE_MEMBER(**sales,ready)}) > same =>n,Set(WAITING=${QUEUE_**WAITING_COUNT(sales)}) > same =>n,Set(STUFF=${QUEUE_**VARIABLES(sales)}) > same =>n,Verbose(waiting: ${WAITING} calls in queue: ${QUEUECALLS} avg > hold: ${QUEUEHOLDTIME} logged in: ${LOGGEDIN} ready: ${READY}) > > Regardless of how long a caller has been waiting in the queue, the output > is: > > -- Executing [812 at LocalSets:1] NoOp("SIP/08000F3BE07C-**00000048", > "queue status") in new stack > -- Executing [812 at LocalSets:2] Set("SIP/08000F3BE07C-**00000048", > "LOGGEDIN=1") in new stack > -- Executing [812 at LocalSets:3] Set("SIP/08000F3BE07C-**00000048", > "READY=1") in new stack > -- Executing [812 at LocalSets:4] Set("SIP/08000F3BE07C-**00000048", > "WAITING=1") in new stack > -- Executing [812 at LocalSets:5] Set("SIP/08000F3BE07C-**00000048", > "STUFF=0") in new stack > -- Executing [812 at LocalSets:6] Verbose("SIP/08000F3BE07C-**00000048", > "waiting: 1 calls in queue: 1 avg hold: 0 logged in: 1 ready: 1") in new > stack > waiting: 1 calls in queue: 1 avg hold: 0 logged in: 1 ready: 1 > >QUEUEHOLDTIME and some other Queue variables will be set just prior to the caller being bridged with a queue member and prior to the caller leaving the queue. So have some calls answered in sales Queue and then check the value for variable. --Satish Barot -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20120927/4804b8d3/attachment.htm>
I am also writing an AMI application that will allow management to see the queue status from an external program and saw the same issues with the AMI data. Using AMI I am able to get what I need from the individual records for each queued call. Mitch On 09/26/2012 04:09 PM, Mitch Claborn wrote:> Asterisk 1.8.10.1~dfsg-1ubuntu1 > > Trying to build a simple announcement of the queue status. QUEUEHOLDTIME > is always zero. What am I doing wrong? > > queues.conf > [general] > autofill=yes > shared_lastcall=yes > > [StandardQueue](!) > musicclass=default > strategy=rrmemory > joinempty=no > leavewhenempty=yes > ringinuse=no > announce-frequency = 30 > min-announce-frequency = 15 > announce-holdtime = yes|no|once > announce-position = limit > announce-position-limit = 5 > announce-round-seconds = 10 > setinterfacevar = yes > setqueueentryvar = yes > setqueuevar = yes > > [sales](StandardQueue) ; create the sales queue using the parameters in > the StandardQueue template > > extensions.conf > exten => 812,1,NoOp(queue status) > same =>n,Set(LOGGEDIN=${QUEUE_MEMBER(sales,logged)}) > same =>n,Set(READY=${QUEUE_MEMBER(sales,ready)}) > same =>n,Set(WAITING=${QUEUE_WAITING_COUNT(sales)}) > same =>n,Set(STUFF=${QUEUE_VARIABLES(sales)}) > same =>n,Verbose(waiting: ${WAITING} calls in queue: ${QUEUECALLS} > avg hold: ${QUEUEHOLDTIME} logged in: ${LOGGEDIN} ready: ${READY}) > > Regardless of how long a caller has been waiting in the queue, the > output is: > > -- Executing [812 at LocalSets:1] NoOp("SIP/08000F3BE07C-00000048", > "queue status") in new stack > -- Executing [812 at LocalSets:2] Set("SIP/08000F3BE07C-00000048", > "LOGGEDIN=1") in new stack > -- Executing [812 at LocalSets:3] Set("SIP/08000F3BE07C-00000048", > "READY=1") in new stack > -- Executing [812 at LocalSets:4] Set("SIP/08000F3BE07C-00000048", > "WAITING=1") in new stack > -- Executing [812 at LocalSets:5] Set("SIP/08000F3BE07C-00000048", > "STUFF=0") in new stack > -- Executing [812 at LocalSets:6] Verbose("SIP/08000F3BE07C-00000048", > "waiting: 1 calls in queue: 1 avg hold: 0 logged in: 1 ready: 1") in new > stack > waiting: 1 calls in queue: 1 avg hold: 0 logged in: 1 ready: 1 > > > > > > > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > New to Asterisk? Join us for a live introductory webinar every Thurs: > http://www.asterisk.org/hello > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >
Did you try restarting asterisk not only a reload Also I found a few broken stuff in queues like the rules (yes its on the tracker) maybe this is also -----Original Message----- From: Mitch Claborn <mitch_ml at claborn.net> Sender: asterisk-users-bounces at lists.digium.com Date: Thu, 27 Sep 2012 09:20:08 To: <asterisk-users at lists.digium.com> Reply-To: Asterisk Users Mailing List - Non-Commercial Discussion <asterisk-users at lists.digium.com> Subject: Re: [asterisk-users] QUEUEHOLDTIME always zero I am also writing an AMI application that will allow management to see the queue status from an external program and saw the same issues with the AMI data. Using AMI I am able to get what I need from the individual records for each queued call. Mitch On 09/26/2012 04:09 PM, Mitch Claborn wrote:> Asterisk 1.8.10.1~dfsg-1ubuntu1 > > Trying to build a simple announcement of the queue status. QUEUEHOLDTIME > is always zero. What am I doing wrong? > > queues.conf > [general] > autofill=yes > shared_lastcall=yes > > [StandardQueue](!) > musicclass=default > strategy=rrmemory > joinempty=no > leavewhenempty=yes > ringinuse=no > announce-frequency = 30 > min-announce-frequency = 15 > announce-holdtime = yes|no|once > announce-position = limit > announce-position-limit = 5 > announce-round-seconds = 10 > setinterfacevar = yes > setqueueentryvar = yes > setqueuevar = yes > > [sales](StandardQueue) ; create the sales queue using the parameters in > the StandardQueue template > > extensions.conf > exten => 812,1,NoOp(queue status) > same =>n,Set(LOGGEDIN=${QUEUE_MEMBER(sales,logged)}) > same =>n,Set(READY=${QUEUE_MEMBER(sales,ready)}) > same =>n,Set(WAITING=${QUEUE_WAITING_COUNT(sales)}) > same =>n,Set(STUFF=${QUEUE_VARIABLES(sales)}) > same =>n,Verbose(waiting: ${WAITING} calls in queue: ${QUEUECALLS} > avg hold: ${QUEUEHOLDTIME} logged in: ${LOGGEDIN} ready: ${READY}) > > Regardless of how long a caller has been waiting in the queue, the > output is: > > -- Executing [812 at LocalSets:1] NoOp("SIP/08000F3BE07C-00000048", > "queue status") in new stack > -- Executing [812 at LocalSets:2] Set("SIP/08000F3BE07C-00000048", > "LOGGEDIN=1") in new stack > -- Executing [812 at LocalSets:3] Set("SIP/08000F3BE07C-00000048", > "READY=1") in new stack > -- Executing [812 at LocalSets:4] Set("SIP/08000F3BE07C-00000048", > "WAITING=1") in new stack > -- Executing [812 at LocalSets:5] Set("SIP/08000F3BE07C-00000048", > "STUFF=0") in new stack > -- Executing [812 at LocalSets:6] Verbose("SIP/08000F3BE07C-00000048", > "waiting: 1 calls in queue: 1 avg hold: 0 logged in: 1 ready: 1") in new > stack > waiting: 1 calls in queue: 1 avg hold: 0 logged in: 1 ready: 1 > > > > > > > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > New to Asterisk? Join us for a live introductory webinar every Thurs: > http://www.asterisk.org/hello > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >-- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
I did try restarting asterisk - no difference. mitch On 09/27/2012 10:59 AM, isrlgb at gmail.com wrote:> Did you try restarting asterisk not only a reload > Also I found a few broken stuff in queues like the rules (yes its on the tracker) maybe this is also > > > > -----Original Message----- > From: Mitch Claborn <mitch_ml at claborn.net> > Sender: asterisk-users-bounces at lists.digium.com > Date: Thu, 27 Sep 2012 09:20:08 > To: <asterisk-users at lists.digium.com> > Reply-To: Asterisk Users Mailing List - Non-Commercial Discussion > <asterisk-users at lists.digium.com> > Subject: Re: [asterisk-users] QUEUEHOLDTIME always zero > > I am also writing an AMI application that will allow management to see > the queue status from an external program and saw the same issues with > the AMI data. Using AMI I am able to get what I need from the > individual records for each queued call. > > Mitch > > On 09/26/2012 04:09 PM, Mitch Claborn wrote: >> Asterisk 1.8.10.1~dfsg-1ubuntu1 >> >> Trying to build a simple announcement of the queue status. QUEUEHOLDTIME >> is always zero. What am I doing wrong? >> >> queues.conf >> [general] >> autofill=yes >> shared_lastcall=yes >> >> [StandardQueue](!) >> musicclass=default >> strategy=rrmemory >> joinempty=no >> leavewhenempty=yes >> ringinuse=no >> announce-frequency = 30 >> min-announce-frequency = 15 >> announce-holdtime = yes|no|once >> announce-position = limit >> announce-position-limit = 5 >> announce-round-seconds = 10 >> setinterfacevar = yes >> setqueueentryvar = yes >> setqueuevar = yes >> >> [sales](StandardQueue) ; create the sales queue using the parameters in >> the StandardQueue template >> >> extensions.conf >> exten => 812,1,NoOp(queue status) >> same =>n,Set(LOGGEDIN=${QUEUE_MEMBER(sales,logged)}) >> same =>n,Set(READY=${QUEUE_MEMBER(sales,ready)}) >> same =>n,Set(WAITING=${QUEUE_WAITING_COUNT(sales)}) >> same =>n,Set(STUFF=${QUEUE_VARIABLES(sales)}) >> same =>n,Verbose(waiting: ${WAITING} calls in queue: ${QUEUECALLS} >> avg hold: ${QUEUEHOLDTIME} logged in: ${LOGGEDIN} ready: ${READY}) >> >> Regardless of how long a caller has been waiting in the queue, the >> output is: >> >> -- Executing [812 at LocalSets:1] NoOp("SIP/08000F3BE07C-00000048", >> "queue status") in new stack >> -- Executing [812 at LocalSets:2] Set("SIP/08000F3BE07C-00000048", >> "LOGGEDIN=1") in new stack >> -- Executing [812 at LocalSets:3] Set("SIP/08000F3BE07C-00000048", >> "READY=1") in new stack >> -- Executing [812 at LocalSets:4] Set("SIP/08000F3BE07C-00000048", >> "WAITING=1") in new stack >> -- Executing [812 at LocalSets:5] Set("SIP/08000F3BE07C-00000048", >> "STUFF=0") in new stack >> -- Executing [812 at LocalSets:6] Verbose("SIP/08000F3BE07C-00000048", >> "waiting: 1 calls in queue: 1 avg hold: 0 logged in: 1 ready: 1") in new >> stack >> waiting: 1 calls in queue: 1 avg hold: 0 logged in: 1 ready: 1 >> >> >> >> >> >> >> -- >> _____________________________________________________________________ >> -- Bandwidth and Colocation Provided by http://www.api-digital.com -- >> New to Asterisk? Join us for a live introductory webinar every Thurs: >> http://www.asterisk.org/hello >> >> asterisk-users mailing list >> To UNSUBSCRIBE or update options visit: >> http://lists.digium.com/mailman/listinfo/asterisk-users >> > > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > New to Asterisk? Join us for a live introductory webinar every Thurs: > http://www.asterisk.org/hello > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > New to Asterisk? Join us for a live introductory webinar every Thurs: > http://www.asterisk.org/hello > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >