<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
<div apple-content-edited="true">
<div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; ">
<span style="letter-spacing: 0px; ">Kevin,</span></div>
<div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; ">
<span style="letter-spacing: 0px; "><br>
</span></div>
<div style="orphans: 2; text-align: -webkit-auto; text-indent: 0px; widows: 2; ">
<span style="letter-spacing: 0px;">Thanks for the </span>response.</div>
<div style="orphans: 2; text-align: -webkit-auto; text-indent: 0px; widows: 2; ">
<br>
</div>
<div style="orphans: 2; text-align: -webkit-auto; text-indent: 0px; widows: 2; ">
We are on the same page.. </div>
<div style="orphans: 2; text-align: -webkit-auto; text-indent: 0px; widows: 2; ">
<br>
</div>
<div style="orphans: 2; text-align: -webkit-auto; text-indent: 0px; widows: 2; ">
The only problem that we have with the penalties is that a call can get 'stuck' on an agent in this scenario.</div>
<div style="orphans: 2; text-align: -webkit-auto; text-indent: 0px; widows: 2; ">
<br>
</div>
<div style="orphans: 2; text-align: -webkit-auto; text-indent: 0px; widows: 2; ">
If they walk away and forget to log off, or go DND than the call will ring with them over and over and not move onto the next penalty level.</div>
<div style="orphans: 2; text-align: -webkit-auto; text-indent: 0px; widows: 2; ">
<br>
</div>
<div style="orphans: 2; text-align: -webkit-auto; text-indent: 0px; widows: 2; ">
Is this the same behavior that you have seen?</div>
<div style="orphans: 2; text-align: -webkit-auto; text-indent: 0px; widows: 2; ">
<br>
</div>
<div style="orphans: 2; text-align: -webkit-auto; text-indent: 0px; widows: 2; ">
Thanks</div>
<div style="orphans: 2; text-align: -webkit-auto; text-indent: 0px; widows: 2; ">
David</div>
<br class="Apple-interchange-newline">
</div>
<br>
<div>
<div>On Feb 28, 2013, at 5:55 PM, Kevin Larsen <<a href="mailto:kevin.larsen@pioneerballoon.com">kevin.larsen@pioneerballoon.com</a>> wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite"><br>
<br>
<font size="1" color="#5f5f5f" face="sans-serif">From: </font><font size="1" face="sans-serif">David Wessell <<a href="mailto:david@ringfree.biz">david@ringfree.biz</a>></font>
<br>
<font size="1" color="#5f5f5f" face="sans-serif">To: </font><font size="1" face="sans-serif">Asterisk Users Mailing List - Non-Commercial Discussion <<a href="mailto:asterisk-users@lists.digium.com">asterisk-users@lists.digium.com</a>>,
</font><br>
<font size="1" color="#5f5f5f" face="sans-serif">Date: </font><font size="1" face="sans-serif">02/28/2013 04:34 PM</font>
<br>
<font size="1" color="#5f5f5f" face="sans-serif">Subject: </font><font size="1" face="sans-serif">[asterisk-users] Dynamic Agents in a queue</font>
<br>
<font size="1" color="#5f5f5f" face="sans-serif">Sent by: </font><font size="1" face="sans-serif"><a href="mailto:asterisk-users-bounces@lists.digium.com">asterisk-users-bounces@lists.digium.com</a></font>
<br>
<hr noshade="">
<br>
<br>
<br>
<tt><font size="2">Hi,<br>
<br>
We have a queue running with dynamic agents in asterisk 1.8.12.0 and FreePBX 2.10.<br>
<br>
We are using the linear ring style.<br>
<br>
Calls are going to the agents in the order in which they log in.<br>
<br>
Is there a way to send calls to an agents in a specific listed order and not in the order that they log in?<br>
<br>
That is (assuming agent logged in).<br>
<br>
Agent1<br>
Agent3<br>
Agent5.<br>
<br>
So calls would always go to Agent1 if he's logged in, than down to 3, and finally to agent 5?<br>
<br>
Thanks<br>
David<br>
<br>
P.S. This seems to work fine with static agents, just not dynamic agents.<br>
<br>
</font></tt><br>
<tt><font size="2">I can interpret your question in one of two ways, so if my explanation below is not what you want, please forgive me.</font></tt>
<br>
<br>
<tt><font size="2">I think your best bet is in your code where you add the queue member you want to assign a penalty to that queue member.
</font></tt><br>
<br>
<tt><font size="2">For instance, Using your example above, suppose you had Agent 1 through Agents 5. Assign queue penalties of 10, 20, 30, 40, and 50 to them, respectively. Now, using your example of 1, 3, and 5 logged in, as long as he is available, agent
1 will get a call. If he is not, it goes to agent 3. If 1 and 3 are not available, it goes to 5.</font></tt>
<br>
<br>
<tt><font size="2">However, this does mean that Agent 1 will take more calls as anytime he is available it will ring him without attempting the other agents.
</font></tt><br>
<br>
<tt><font size="2">We use this as some agents are primary on one queue, but secondary or tertiary on other queues. That way if the primary people are all busy, they will fall through to their backups, but if they are available it will always prefer them.</font></tt>
<br>
<br>
<tt><font size="2">We store the queue levels in the asterisk database and when the agents log in, it looks them up in the database and applies the appropriate penalty to the AddQueueMember command.</font></tt>
<br>
<br>
<tt><font size="2">Hope this helps.<br>
</font></tt><br>
--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
<a href="http://www.asterisk.org/hello">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a></blockquote>
</div>
<br>
</body>
</html>