Script to unpause queue members

queue
Tags: #<Tag:0x00007f7027ae0d00>

(Jared Busch) #1

Because least recent and fewest calls will continue to ring the same agent forever, I set autopause in the queue options.

Of course that leads to users not unpausing themselves.

So I made a little script a while back that simply unpauses everyone in a queue and set it to run on a cron schedule the customer was happy with.

  1. is there a better method to do this?
  2. why does least recent and fewest calls not move on to another agent?
  3. i wish auto pause had a setting to auto unpause.
[jbusch@pbx ~]$ cat unpause_all.sh 
#!/bin/sh

rasterisk -x "queue show ${1}" | grep paused | grep -o Local.*/n | while read -r member
do
    rasterisk -x "queue unpause member ${member} queue ${1}"
done

(system) closed #2

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.