-
Type:
Improvement
-
Status: Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 16.0.18
-
Fix Version/s: None
-
Component/s: Queues
-
Labels:None
-
ToDo:
-
Asterisk Version:18.14.0
-
Distro Version:SNG7
-
Distro:FreePBX Distro
Hi,
I have configured a queue with dynamic agent and a fail over to voice mail.
In addition there is a join announcement played if no agent is free.
The problem is that the announcement is also played out if there is no agent logged in.
So there is the join announcement and than the voice mail which does not sounds nice.
The problem is the following line which is not checking if there are agents in the queue:
exten => 98,n,ExecIf($["${QJOINMSG}"!="" && ${QUEUE_MEMBER(98,free)}<1]?Playback(${QJOINMSG}, ))
Maybe there is a need of this behaviour or it is a bug. So I suggest to either just check for a agent logged into the queue otherwise to send the call to fail over destination.
exten => 98,n,ExecIf($["${QJOINMSG}"!="" && ${QUEUE_MEMBER(98,free)}<1 && ${QUEUE_MEMBER(98,count)}>0]?Playback(${QJOINMSG}, ))
I'm checking here is the member count is > 0. If not the join to queue will fail.
Another option would be to have a configuration inside the GUI which is enabling or disabling the possibility to join an queue without agents.
Hope this could be implemented.
Please let me know if more information are required.
Thx for the great work