Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[asterisk-users] Determining if a queue member is paused in Dialplan logic. [1.8]


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
johnkiniston at gmail.com
Guest





PostPosted: Wed Mar 25, 2015 1:38 pm    Post subject: [asterisk-users] Determining if a queue member is paused in Reply with quote

Howdy,


I'm looking at enabling autopause on one of my queues where my queue members are bad about leaving their desks without pausing.


The problem I see is that when the queue pauses an Member it doesn't jump into the dialplan to do so which means my handy device state and asterisk database driven Light for the Member showing their paused status won't update.


My idea for solving this problem is to check the status of my Member in the queue before I send the calls into it and toggle on the Members Paused light at that point in time if they are paused.


Sadly I don't see a way to determine if my Staff are paused or not from the dialplan, There doesn't appear to be a function to retrieve the status of the members in the queue.


Does the list have any suggestions?
--
A human being should be able to change a diaper, plan an invasion, butcher a hog, conn a ship, design a building, write a sonnet, balance accounts, build a wall, set a bone, comfort the dying, take orders, give orders, cooperate, act alone, solve equations, analyze a new problem, pitch manure, program a computer, cook a tasty meal, fight efficiently, die gallantly. Specialization is for insects.
---Heinlein
Back to top
johnkiniston at gmail.com
Guest





PostPosted: Wed Mar 25, 2015 7:19 pm    Post subject: [asterisk-users] Determining if a queue member is paused in Reply with quote

Thank you Kevin, I've looked at your solution and while I agree it's not ideal it does appear to be something that might work for me.


I'll see if I can maybe backport the QUEUE_MEMBER stuff to 1.8 from 11.


I'm also exploring an idea with a co-worker of using an AMI listener that will fire off actions in response to the member being paused and doing things that way.


I looked at parsing the log but sadly the log uses the Member Name in the log instead of the actual device so I don't have a way of knowing what handset they are logged into the queue from.

On Wed, Mar 25, 2015 at 12:13 PM, Kevin Larsen <kevin.larsen@pioneerballoon.com (kevin.larsen@pioneerballoon.com)> wrote:
Quote:

First, let me say I feel dirty for even posting this. It is probably far from ideal, but it does get the job done. I had the same issue. Also, I am using Asterisk 11. I just looked and it doesn't appear that the QUEUE_MEMBER function supports the paused option in 1.8. To be honest, I am not sure if there is a good replacement for what I have done below in the 1.8 series.

It isn't elegant and if you have a lot of queues/queue members to check, it will constitute a lot of looping, but it does work. Like you, I would like to have a way to check the pause status of a member easier. If the queue application could call a subroutine with it autopaused someone, that would actually make an elegant solution, but for now, this was the way I could see to do it.

You could maybe call a script that would parse the queue_log file looking for an agents status and pass that back into the dialplan.
--
_____________________________________________________________________
-- 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



--
A human being should be able to change a diaper, plan an invasion, butcher a hog, conn a ship, design a building, write a sonnet, balance accounts, build a wall, set a bone, comfort the dying, take orders, give orders, cooperate, act alone, solve equations, analyze a new problem, pitch manure, program a computer, cook a tasty meal, fight efficiently, die gallantly. Specialization is for insects.
---Heinlein
Back to top
dnoll at wi.rr.com
Guest





PostPosted: Thu Mar 26, 2015 6:25 am    Post subject: [asterisk-users] Determining if a queue member is paused in Reply with quote

I use a Perl script that monitors AMI events.  It also checks the state of all queues and members and generates some basic HTML pages for monitoring the queues. It's not perfect, nor would I call it pretty, but it gets the job done.

If you are interested, I can send it to you.


Dale


On Wed, Mar 25, 2015 at 7:18 PM, John Kiniston <johnkiniston@gmail.com (johnkiniston@gmail.com)> wrote:
Quote:
Thank you Kevin, I've looked at your solution and while I agree it's not ideal it does appear to be something that might work for me.


I'll see if I can maybe backport the QUEUE_MEMBER stuff to 1.8 from 11.


I'm also exploring an idea with a co-worker of using an AMI listener that will fire off actions in response to the member being paused and doing things that way.


I looked at parsing the log but sadly the log uses the Member Name in the log instead of the actual device so I don't have a way of knowing what handset they are logged into the queue from.

On Wed, Mar 25, 2015 at 12:13 PM, Kevin Larsen <kevin.larsen@pioneerballoon.com (kevin.larsen@pioneerballoon.com)> wrote:
Quote:

First, let me say I feel dirty for even posting this. It is probably far from ideal, but it does get the job done. I had the same issue. Also, I am using Asterisk 11. I just looked and it doesn't appear that the QUEUE_MEMBER function supports the paused option in 1.8. To be honest, I am not sure if there is a good replacement for what I have done below in the 1.8 series.

It isn't elegant and if you have a lot of queues/queue members to check, it will constitute a lot of looping, but it does work. Like you, I would like to have a way to check the pause status of a member easier. If the queue application could call a subroutine with it autopaused someone, that would actually make an elegant solution, but for now, this was the way I could see to do it.

You could maybe call a script that would parse the queue_log file looking for an agents status and pass that back into the dialplan.
--
_____________________________________________________________________
-- 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



--
A human being should be able to change a diaper, plan an invasion, butcher a hog, conn a ship, design a building, write a sonnet, balance accounts, build a wall, set a bone, comfort the dying, take orders, give orders, cooperate, act alone, solve equations, analyze a new problem, pitch manure, program a computer, cook a tasty meal, fight efficiently, die gallantly. Specialization is for insects.
---Heinlein






--
_____________________________________________________________________
-- 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
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services