How to make my agents set a new pause without unpausing first

2014-05-08
When you send a new Pause event without Unpausing first QueueMetrics doesn't consider that a new pause but always the same pause. It consider as the correct pause code the last one issued.
In order to have two distinct pauses you'll have to unpause, then pause again with the new code.

If you don't like this behaviour (for example, you don't want your agents to be able to change a running pause code) add this line to the QueueMetrics dialplan, at extesion 22, before the "PauseQueueMember" line: exten => 22,n,System( echo "${EPOCH}|NONE|NONE|Agent/${AGENTCODE}|UNPAUSEALL|" >> /var/log/asterisk/queue_log )