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: exten => xxxx,1,GotoIfTime(*|*|20|dec?ccagents,xxxx,6) exten => xxxx,2,GotoIfTime(10:00-16:00|*|26|dec?ccagents,xxxx,7) exten => xxxx,3,GotoIfTime(09:00-18:00|*|31|dec?ccagents,xxxx,7) exten => xxxx,4,GotoIfTime(12:00-16:00|*|1|jan?ccagents,xxxx,7) exten => xxxx,5,GotoIfTime(09:00-18:00|mon-fri,*,*?ccagents,xxxx,7) exten => xxxx,6,Goto(out-of-hours,5003,1) exten => xxxx,7,Answer() exten => xxxx,8,Playback(custom/next-avail-advisor) exten => xxxx,9,Set(MONITOR_FILENAME=/var/spool/asterisk/q/talksupport-${TIMESTAMP}-${UNIQUEID}) exten => xxxx,10,Monitor(wav,${MONITOR_FILENAME},mb) exten => xxxx,11,Queue(kbsupport,t) exten => xxxx,12,Hangup() thanks arun -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20070430/1e087903/attachment.htm
Arun Kumar wrote:> 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:From: http://voip-info.org/wiki/index.php?page=Asterisk+config+queues.conf -- joinempty=strict "joinempty" set to "strict" will keep incoming callers from being placed in queues where there are no agents to take calls. The Queue() application will return, and the dial plan can detemine what to do next. -- You should also pick up a copy of Asterisk: The Future of Telephony. pp.326-328 contain information on queues.conf.> exten => xxxx,1,GotoIfTime(*|*|20|dec?ccagents,xxxx,6) > exten => xxxx,2,GotoIfTime(10:00-16:00|*|26|dec?ccagents,xxxx,7) > exten => xxxx,3,GotoIfTime(09:00-18:00|*|31|dec?ccagents,xxxx,7) > exten => xxxx,4,GotoIfTime(12:00-16:00|*|1|jan?ccagents,xxxx,7) > exten => xxxx,5,GotoIfTime(09:00-18:00|mon-fri,*,*?ccagents,xxxx,7) > exten => xxxx,6,Goto(out-of-hours,5003,1) > exten => xxxx,7,Answer() > exten => xxxx,8,Playback(custom/next-avail-advisor) > exten => > xxxx,9,Set(MONITOR_FILENAME=/var/spool/asterisk/q/talksupport-${TIMESTAMP}-${UNIQUEID}) > > exten => xxxx,10,Monitor(wav,${MONITOR_FILENAME},mb) > exten => xxxx,11,Queue(kbsupport,t) > exten => xxxx,12,Hangup()You may need to put a handler after priority 11. Your current logic will unconditionally hangup the channel if no agents are in the queue. -- Jeff Davis Netsource Consulting
Arun Kumar wrote:> 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:I think that you want asterisk not to pick up the call when all of your agents are busy, right? I guess that in this case you do not want to use queues, but you want to build some dialgroup. So you'll need to do a few things 1- have some extension that agents can call to log on. When they do, append their account (Technology/resource) to a database record (or global var). 2- have some extension that agents can call to log off. Reverse of the above. 3- When somebody calls the extension 'xxxx' from below, you use Dial on the database entry or global var to call all of your agents. If the dail fails, you check the dialstatus to see why and possibly retry after so many seconds (for a limited amount of tries) and then maybe answer the call to play an announcement that nobody is available and please try again later, or would they want to wait an be placed in a queue.> > exten => xxxx,1,GotoIfTime(*|*|20|dec?ccagents,xxxx,6) > exten => xxxx,2,GotoIfTime(10:00-16:00|*|26|dec?ccagents,xxxx,7) > exten => xxxx,3,GotoIfTime(09:00-18:00|*|31|dec?ccagents,xxxx,7) > exten => xxxx,4,GotoIfTime(12:00-16:00|*|1|jan?ccagents,xxxx,7) > exten => xxxx,5,GotoIfTime(09:00-18:00|mon-fri,*,*?ccagents,xxxx,7) > exten => xxxx,6,Goto(out-of-hours,5003,1) > exten => xxxx,7,Answer() > exten => xxxx,8,Playback(custom/next-avail-advisor) > exten => > xxxx,9,Set(MONITOR_FILENAME=/var/spool/asterisk/q/talksupport-${TIMESTAMP}-${UNIQUEID}) > > exten => xxxx,10,Monitor(wav,${MONITOR_FILENAME},mb) > exten => xxxx,11,Queue(kbsupport,t) > exten => xxxx,12,Hangup() > > > > thanks > arun > > > ------------------------------------------------------------------------ > > _______________________________________________ > --Bandwidth and Colocation provided by Easynews.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users-- Remco Post "I didn't write all this code, and I can't even pretend that all of it makes sense." -- Glen Hattrup