Thanks a lot!<br>Your explanation was very clear.<br><br>Thanks again.<br><br><br><div class="gmail_quote">On Fri, Nov 28, 2008 at 2:14 PM, Atis Lezdins <span dir="ltr">&lt;<a href="mailto:atis@iq-labs.net">atis@iq-labs.net</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d">On Fri, Nov 28, 2008 at 4:51 PM, equis software &lt;<a href="mailto:equissoftware@gmail.com">equissoftware@gmail.com</a>&gt; wrote:<br>

&gt; In both queues have the same wrapuptime, thereīs not a problem...<br>
&gt; With weight property I canīt resolve my problem...I want to answer calls of<br>
&gt; both queues sorted by time, like a big FIFO or like if I had only one queue<br>
<br>
</div>I&#39;m afraid that it&#39;s not possible. There will be too much cases when<br>
one queue can choose to call agent ignoring another queue.<br>
<br>
What i meant with wrapuptime - even if it&#39;s the same (and you don&#39;t<br>
use shared_lastcall), second queue won&#39;t know that agent has just<br>
ended conversation - so it will send call to agent. I guess that there<br>
would be some more such &quot;race conditions&quot; for having free agent.<br>
<br>
If you really need FIFO, you would have much better luck with having<br>
one queue and then thinking how to customize it for different callers.<br>
Single instance of Queue is built like FIFO for calls (with bucket of<br>
agents).<br>
<br>
For example - wait time you can specify as argument to Queue().<br>
<br>
As for different caller amount, you can assign them to groups and use<br>
GROUP_COUNT to determine how many they are in each group.<br>
<br>
If you need some more differentiation, just ask, and we&#39;ll try to give ideas.<br>
<br>
Oh, btw - you could also try to create one fake agent in queue1 and<br>
queue2 (with ringinuse=yes) and use Local channel to send those calls<br>
to queue-real where your agents reside. However, i&#39;m not sure that<br>
this will work, as queue-real might answer channel, even if you set<br>
&quot;r&quot; option.. not sure is this a problem, but it could be complex :)<br>
<br>
<br>
Regards,<br>
<font color="#888888">Atis<br>
</font><div><div></div><div class="Wj3C7c"><br>
<br>
<br>
<br>
<br>
&gt;<br>
&gt; regards<br>
&gt;<br>
&gt;<br>
&gt; On Fri, Nov 28, 2008 at 12:31 PM, Atis Lezdins &lt;<a href="mailto:atis@iq-labs.net">atis@iq-labs.net</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; On Fri, Nov 28, 2008 at 4:16 PM, Darrin Henshaw &lt;<a href="mailto:DHenshaw@ignition.bm">DHenshaw@ignition.bm</a>&gt;<br>
&gt;&gt; wrote:<br>
&gt;&gt; &gt; One thing you also will run into is listed here:<br>
&gt;&gt; &gt; <a href="http://www.voip-info.org/wiki/view/Asterisk+config+queues.conf" target="_blank">http://www.voip-info.org/wiki/view/Asterisk+config+queues.conf</a>.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Here is the interesting part:<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Note that calls are not offered to queue members whilst the announcement<br>
&gt;&gt; &gt; is<br>
&gt;&gt; &gt; playing and it is possible for callers to slip ahead in the queue as a<br>
&gt;&gt; &gt; result. For example, call 1 arrives and is queued. Call 2 arrives ten<br>
&gt;&gt; &gt; seconds later and is queued. After twenty seconds, call 1 is played the<br>
&gt;&gt; &gt; periodic announce message. Exactly one second after call 1 starts<br>
&gt;&gt; &gt; hearing<br>
&gt;&gt; &gt; the message an agent becomes free. Since call 1 is tied up with<br>
&gt;&gt; &gt; announcements, call 2 is successfully offered to the agent. Call 1<br>
&gt;&gt; &gt; remains<br>
&gt;&gt; &gt; on hold and yet a call which arrived later has been serviced.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Basically you can see that if you have announcements played, that could<br>
&gt;&gt; &gt; cause your order of answered calls to be not what you expect.<br>
&gt;&gt;<br>
&gt;&gt; With queues there are much more such situation than just this one ;)<br>
&gt;&gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Cheers,<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Darrin Henshaw | IT Administrator | MCTS: Exchange 2007 | MCSE 2003 |<br>
&gt;&gt; &gt; LPIC<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Ignition Support Center | <a href="http://www.ignition.bm" target="_blank">www.ignition.bm</a><br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Bermuda (441) 496-4319 | Cayman (345) 947-4357 | Halifax (902) 482-1288<br>
&gt;&gt; &gt; Atlanta | Bermuda | Cayman | Halifax<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; From: <a href="mailto:asterisk-users-bounces@lists.digium.com">asterisk-users-bounces@lists.digium.com</a><br>
&gt;&gt; &gt; [mailto:<a href="mailto:asterisk-users-bounces@lists.digium.com">asterisk-users-bounces@lists.digium.com</a>] On Behalf Of equis<br>
&gt;&gt; &gt; software<br>
&gt;&gt; &gt; Sent: Friday, November 28, 2008 10:06<br>
&gt;&gt; &gt; To: Asterisk Users Mailing List - Non-Commercial Discussion<br>
&gt;&gt; &gt; Subject: Re: [asterisk-users] Priority between calls from different<br>
&gt;&gt; &gt; queues<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; I saw QUEUE_PRIO but it works inside a queue not between queues.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; I need to use two queues because their have different settings like max<br>
&gt;&gt; &gt; time<br>
&gt;&gt; &gt; waiting, max amount of calls in queue and others.<br>
&gt;&gt;<br>
&gt;&gt; For in-between queues you can use weight. So, if queue1 has more<br>
&gt;&gt; weight than queue2, and agent1 is available (and is in both queues),<br>
&gt;&gt; he will receive call from queue1 (no matter how long other caller<br>
&gt;&gt; waits in queue2).<br>
&gt;&gt;<br>
&gt;&gt; Also, there&#39;s wrapuptime. It means - how many seconds agent should not<br>
&gt;&gt; receive call after completing previous queue call. So, if agent<br>
&gt;&gt; receives call from queue1 and it has wrapuptime 10 seconds, then he<br>
&gt;&gt; ends call, he might immediately receive call from queue2 - no matter<br>
&gt;&gt; that queue2 has lower weight or whatever settings. To overcome this,<br>
&gt;&gt; you have to enable shared_lastcall (available since 1.6.0).<br>
&gt;&gt;<br>
&gt;&gt; Regards,<br>
&gt;&gt; Atis<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Regards<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; On Fri, Nov 28, 2008 at 11:34 AM, Atis Lezdins &lt;<a href="mailto:atis@iq-labs.net">atis@iq-labs.net</a>&gt; wrote:<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; On Fri, Nov 28, 2008 at 1:13 PM, equis software<br>
&gt;&gt; &gt; &lt;<a href="mailto:equissoftware@gmail.com">equissoftware@gmail.com</a>&gt;<br>
&gt;&gt; &gt; wrote:<br>
&gt;&gt; &gt;&gt; Hi!<br>
&gt;&gt; &gt;&gt; I want to know the way that calls are answer in this case...<br>
&gt;&gt; &gt;&gt; I have queue1 and queue2, one agent that receive call from both queues.<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; queue1 &lt;- call1<br>
&gt;&gt; &gt;&gt; queue1 &lt;- call2<br>
&gt;&gt; &gt;&gt; queue2 &lt;- call3<br>
&gt;&gt; &gt;&gt; queue2 &lt;- call4<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; In my test the agent answer calls in this order: call1,call3,call2 and<br>
&gt;&gt; &gt;&gt; call4.<br>
&gt;&gt; &gt;&gt; I think this must be in this order call1,call2, call3, call4 like a big<br>
&gt;&gt; &gt;&gt; FIFO.<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; Its ok this behavior?<br>
&gt;&gt; &gt;&gt; Could I set priority between queues?<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Hello,<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Queue has lot of different settings, like wrapuptime, strategy, etc.<br>
&gt;&gt; &gt; Also two queues usually don&#39;t know about each other, with few<br>
&gt;&gt; &gt; exceptions. One of them is shared_lastcall (introduced in Asterisk<br>
&gt;&gt; &gt; 1.6.0). There&#39;s also weight - it will help to give priority to<br>
&gt;&gt; &gt; specific queue if multiple calls are ready to go to agent in different<br>
&gt;&gt; &gt; queues. Also, you can give priority to different callers within queue<br>
&gt;&gt; &gt; by setting QUEUE_PRIO variable before sending call to queue.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; You could try to describe why you need two queues and what should be<br>
&gt;&gt; &gt; rules to distribute calls - so we can help you with overall<br>
&gt;&gt; &gt; architecture.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Regards,<br>
&gt;&gt; &gt; Atis<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; --<br>
&gt;&gt; &gt; Atis Lezdins,<br>
&gt;&gt; &gt; VoIP Project Manager / Developer,<br>
&gt;&gt; &gt; IQ Labs Inc,<br>
&gt;&gt; &gt; <a href="mailto:atis@iq-labs.net">atis@iq-labs.net</a><br>
&gt;&gt; &gt; Skype: atis.lezdins<br>
&gt;&gt; &gt; Cell Phone: +371 28806004<br>
&gt;&gt; &gt; Cell Phone: +1 800 7300689<br>
&gt;&gt; &gt; Work phone: +1 800 7502835<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; _______________________________________________<br>
&gt;&gt; &gt; -- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; asterisk-users mailing list<br>
&gt;&gt; &gt; To UNSUBSCRIBE or update options visit:<br>
&gt;&gt; &gt; &nbsp; <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; ________________________________<br>
&gt;&gt; &gt; This email and its attachments may be confidential and are intended<br>
&gt;&gt; &gt; solely<br>
&gt;&gt; &gt; for the use of the individual or parties&#39; to whom it is addressed. All<br>
&gt;&gt; &gt; comments are solely those of the author and do not necessarily represent<br>
&gt;&gt; &gt; those of Ignition. If you are not the intended recipient of this email<br>
&gt;&gt; &gt; and<br>
&gt;&gt; &gt; its attachments, you must take no action based upon them, nor must you<br>
&gt;&gt; &gt; copy<br>
&gt;&gt; &gt; or show them to anyone. Please contact the sender if you believe you<br>
&gt;&gt; &gt; have<br>
&gt;&gt; &gt; received this email in error. Thanks for considering the environmental<br>
&gt;&gt; &gt; impact before printing this email.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; _______________________________________________<br>
&gt;&gt; &gt; -- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; asterisk-users mailing list<br>
&gt;&gt; &gt; To UNSUBSCRIBE or update options visit:<br>
&gt;&gt; &gt; &nbsp; <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
&gt;&gt; &gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt; Atis Lezdins,<br>
&gt;&gt; VoIP Project Manager / Developer,<br>
&gt;&gt; IQ Labs Inc,<br>
&gt;&gt; <a href="mailto:atis@iq-labs.net">atis@iq-labs.net</a><br>
&gt;&gt; Skype: atis.lezdins<br>
&gt;&gt; Cell Phone: +371 28806004<br>
&gt;&gt; Cell Phone: +1 800 7300689<br>
&gt;&gt; Work phone: +1 800 7502835<br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; -- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
&gt;&gt;<br>
&gt;&gt; asterisk-users mailing list<br>
&gt;&gt; To UNSUBSCRIBE or update options visit:<br>
&gt;&gt; &nbsp; <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; -- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
&gt;<br>
&gt; asterisk-users mailing list<br>
&gt; To UNSUBSCRIBE or update options visit:<br>
&gt; &nbsp; <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
&gt;<br>
<br>
<br>
<br>
--<br>
Atis Lezdins,<br>
VoIP Project Manager / Developer,<br>
IQ Labs Inc,<br>
<a href="mailto:atis@iq-labs.net">atis@iq-labs.net</a><br>
Skype: atis.lezdins<br>
Cell Phone: +371 28806004<br>
Cell Phone: +1 800 7300689<br>
Work phone: +1 800 7502835<br>
<br>
_______________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
 &nbsp; <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
</div></div></blockquote></div><br>