In my * box I've configured two queues and incoming number and whenever any one calls those number call comes to my *box and it sends call to my agents in queue. but if no agent is available it still answer the call. Is there any why when my agents are not available I don't want call to get answered. Here is my dialplan:
<br><br>exten => xxxx,1,GotoIfTime(*|*|20|dec?ccagents,xxxx,6)<br>exten => xxxx,2,GotoIfTime(10:00-16:00|*|26|dec?ccagents,xxxx,7)<br>exten => xxxx,3,GotoIfTime(09:00-18:00|*|31|dec?ccagents,xxxx,7)<br>exten => xxxx,4,GotoIfTime(12:00-16:00|*|1|jan?ccagents,xxxx,7)
<br>exten => xxxx,5,GotoIfTime(09:00-18:00|mon-fri,*,*?ccagents,xxxx,7)<br>exten => xxxx,6,Goto(out-of-hours,5003,1)<br>exten => xxxx,7,Answer()<br>exten => xxxx,8,Playback(custom/next-avail-advisor)<br>exten => xxxx,9,Set(MONITOR_FILENAME=/var/spool/asterisk/q/talksupport-${TIMESTAMP}-${UNIQUEID})
<br>exten => xxxx,10,Monitor(wav,${MONITOR_FILENAME},mb)<br>exten => xxxx,11,Queue(kbsupport,t)<br>exten => xxxx,12,Hangup()<br><br><br><br>thanks<br>arun<br>