I have a quick question. Is it possible to unpause all queue members in CLI?
Or if not, can i set up some kind of timeout to all queue members so lets say one goes into pause state and after 10 seconds asterisk unpause it automatically. I’m planning to run a test environment with 100 or more queue members so it would be good if i could unpause them in one command (its hard to do that manually even with 25 members :)).
I do not think there is an Asterisk CLI command for unpause all, but since we also have the power of the Bash shell… A short script will do the trick.
asterisk -rx “queue show yourqueue” | grep ‘paused’ | while read MEMBER everythingelse
do
asterisk -rx "queue unpause member ${MEMBER} queue yourqueue"
done
Not necessarily the most efficient way, but it gets the job done.