Hi Atis and friends,<br><br>I think it has direct relation with calls not being delivered to available agents, as you can see at following lines, Iīve confirmed i<i>n situ</i> there were real available agents:<br><br><font size="1">[root@astpbx apps]# asterisk -rx &quot;queue show&quot;<br>

QUEUE1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; has 0 calls (max 100) in &#39;rrmemory&#39; strategy (0s holdtime), W:1, C:722, A:13, SL:83.7% within 0s<br>&nbsp;&nbsp; Members:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Local/630@call-to-agent/n with penalty 2 (dynamic) (Not in use) has taken no calls yet<br>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Local/629@call-to-agent/n with penalty 2 (dynamic) (In use) has taken no calls yet<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Local/627@call-to-agent/n with penalty 2 (dynamic) (Not in use) has taken no calls yet<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Local/626@call-to-agent/n with penalty 2 (dynamic) (In use) has taken 1 calls (last was 2040 secs ago)<br>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Local/625@call-to-agent/n with penalty 2 (dynamic) (In use) has taken no calls yet<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Local/624@call-to-agent/n with penalty 2 (dynamic) (Not in use) has taken no calls yet<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Local/623@call-to-agent/n with penalty 2 (dynamic) (In use) has taken no calls yet<br>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Local/622@call-to-agent/n with penalty 2 (dynamic) (Not in use) has taken no calls yet<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Local/614@call-to-agent/n with penalty 1 (dynamic) (Not in use) has taken no calls yet<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Local/611@call-to-agent/n with penalty 1 (dynamic) (In use) has taken 3 calls (last was 1045 secs ago)<br>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Local/610@call-to-agent/n with penalty 1 (dynamic) (Not in use) has taken no calls yet<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Local/609@call-to-agent/n with penalty 1 (dynamic) (Not in use) has taken no calls yet<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Local/641@call-to-agent/n with penalty 1 (dynamic) (In use) has taken 3 calls (last was 1207 secs ago)<br>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Local/605@call-to-agent/n with penalty 1 (dynamic) (In use) has taken 8 calls (last was 351 secs ago)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Local/601@call-to-agent/n with penalty 1 (dynamic) (In use) has taken 3 calls (last was 450 secs ago)<br>

&nbsp;&nbsp; No Callers<br><br>QUEUE2&nbsp; has 0 calls (max 100) in &#39;rrmemory&#39; strategy (0s holdtime), W:4, C:249, A:1, SL:87.6% within 0s<br>&nbsp;&nbsp; Members:<br></font><div style="text-align: center;"><font size="1"><i>[agents&#39;&nbsp; status are similar to QUEUE5]</i></font><font size="1"></font><br>

</div><font size="1">&nbsp;&nbsp; No Callers<br><br>QUEUE3&nbsp; has 0 calls (max 100) in &#39;rrmemory&#39; strategy (3s holdtime), W:3, C:582, A:6, SL:84.7% within 0s<br>&nbsp;&nbsp; Members:<br></font><div style="text-align: center;"><font size="1"><i>[agents&#39;&nbsp; status are similar to QUEUE5]</i></font><font size="1"></font><br>

</div><font size="1">&nbsp;&nbsp; No Callers<br><br>QUEUE4 has 0 calls (max 100) in &#39;rrmemory&#39; strategy (0s holdtime), W:3, C:254, A:9, SL:78.3% within 0s<br>&nbsp;&nbsp; Members:<br></font><div style="text-align: center;"><font size="1"><i>[agents&#39;&nbsp; status are similar to QUEUE5]</i></font><br>

</div><font size="1">&nbsp;&nbsp; No Callers<br><br><br>QUEUE5&nbsp;&nbsp;&nbsp;&nbsp; has 2 calls (max 100) in &#39;rrmemory&#39; strategy (7s holdtime), W:1, C:531, A:6, SL:79.3% within 0s<br>&nbsp;&nbsp; Members:<br><b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Local/630@call-to-agent/n with penalty 1 (dynamic) (Not in use) has taken no calls yet</b><br>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Local/629@call-to-agent/n with penalty 1 (dynamic) (In use) has taken 1 calls (last was 1253 secs ago)<br><b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Local/627@call-to-agent/n with penalty 1 (dynamic) (Not in use) has taken 9 calls (last was 795 secs ago</b><br>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Local/626@call-to-agent/n with penalty 1 (dynamic) (In use) has taken 4 calls (last was 251 secs ago)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Local/625@call-to-agent/n with penalty 1 (dynamic) (In use) has taken 2 calls (last was 283 secs ago)<br>

<b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Local/624@call-to-agent/n with penalty 1 (dynamic) (Not in use) has taken 5 calls (last was 264 secs ago</b><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Local/623@call-to-agent/n with penalty 1 (dynamic) (In use) has taken 1 calls (last was 15 secs ago)<br>

<b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Local/622@call-to-agent/n with penalty 1 (dynamic) (Not in use) has taken no calls yet<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Local/614@call-to-agent/n with penalty 2 (dynamic) (Not in use) has taken no calls yet</b><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Local/611@call-to-agent/n with penalty 2 (dynamic) (In use) has taken 1 calls (last was 3376 secs ago)<br>

<b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Local/610@call-to-agent/n with penalty 2 (dynamic) (Not in use) has taken no calls yet<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Local/609@call-to-agent/n with penalty 2 (dynamic) (Not in use) has taken no calls yet</b><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Local/641@call-to-agent/n with penalty 2 (dynamic) (In use) has taken no calls yet<br>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Local/605@call-to-agent/n with penalty 2 (dynamic) (In use) has taken 3 calls (last was 1162 secs ago)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Local/601@call-to-agent/n with penalty 2 (dynamic) (In use) has taken 2 calls (last was 2046 secs ago)<br>

&nbsp;&nbsp; Callers:<br><b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1. Zap/76-1 (wait: 0:28, prio: 0)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2. Zap/63-1 (wait: 0:04, prio: 0)</b><br><br>QUEUE6 has 0 calls (max 100) in &#39;rrmemory&#39; strategy (0s holdtime), W:4, C:360, A:0, SL:84.2% within 0s<br>

&nbsp;&nbsp; Members:<br></font><div style="text-align: center;"><font size="1"><i>[agents&#39;&nbsp; status are similar to QUEUE5]</i></font><font size="1"></font><br></div><font size="1">&nbsp;&nbsp; No Callers<br><br>QUEUE7 has 0 calls (max 100) in &#39;rrmemory&#39; strategy (0s holdtime), W:3, C:215, A:1, SL:82.8% within 0s<br>

&nbsp;&nbsp; Members:<br></font><div style="text-align: center;"><font size="1"><i>[agents&#39;&nbsp; status are similar to QUEUE5]</i></font><br></div><font size="1">&nbsp;&nbsp; No Callers<br><br><font size="2">And problems continues for a while...</font><br>

<br>[root@astpbx apps]# asterisk -rx &quot;queue show&quot; |grep wait<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1. Zap/76-1 (wait: 0:31, prio: 0)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2. Zap/63-1 (wait: 0:07, prio: 0)<br>[root@astpbx apps]# asterisk -rx &quot;queue show&quot; |grep wait<br>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1. Zap/76-1 (wait: 0:38, prio: 0)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2. Zap/63-1 (wait: 0:14, prio: 0)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1. Zap/80-1 (wait: 0:03, prio: 0)<br>[root@astpbx apps]# asterisk -rx &quot;queue show&quot; |grep wait<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1. Zap/76-1 (wait: 0:42, prio: 0)<br>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2. Zap/63-1 (wait: 0:18, prio: 0)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1. Zap/80-1 (wait: 0:07, prio: 0)<br></font><br>Looking at the related logs I see:<br><br><font size="1">1214848558|1214848504.226198|QUEUE5|NONE|ENTERQUEUE||1XYZABCD<br>1214848573|1214848504.226198|QUEUE5|Local/604@call-to-agent/n|RINGNOANSWER|0<br>

.<br>.<br>1214848712|1214848504.226198|QUEUE5|Local/605@call-to-agent/n|RINGNOANSWER|0<br>1214848712|1214848504.226198|QUEUE5|Local/604@call-to-agent/n|RINGNOANSWER|0<br>1214848713|1214848504.226198|QUEUE5|NONE|ABANDON|1|2|155<br>

</font><br>The call has ringed: <br><font size="1">604 - 92 times, 605 - 88; 606 - 88, 609 - 88, 610 - 88, 611 - 9, 614 - 88, 622 - 88, 623 - 9; 624 - 88; 627 - 27; 628 - 88; 630 - 64 times.<br><br><font size="2">I will very appreciate any comment you have, it would be possible that agent (or device) status are not being updated correctly? <br>

<br>Thanks in advance,<br><br>Elder Arohuanca,<br>Cell Phone: +51 1989541408<br></font><br></font><br><div class="gmail_quote">On Thu, Jun 19, 2008 at 5:15 PM, Atis Lezdins &lt;<a href="mailto:atis@iq-labs.net" target="_blank">atis@iq-labs.net</a>&gt; 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><div></div><div>On Thu, Jun 19, 2008 at 10:06 PM, Chento Arohuanca &lt;<a href="mailto:earohuanca@gmail.com" target="_blank">earohuanca@gmail.com</a>&gt; wrote:<br>
&gt; Just about 30 minutes that I canīt get real information from my Asterisk<br>
&gt; box. All agents seem to be available but is not true:<br>
&gt;<br>
&gt;<br>
&gt; QUEUE_01 has 0 calls (max 100) in &#39;rrmemory&#39; strategy (0s holdtime), W:4,<br>
&gt; C:0, A:0, SL:0.0% within 0s<br>
&gt; &nbsp; &nbsp;Members:<br>
&gt; &nbsp; &nbsp; &nbsp; Local/630@call-to-agent/n with penalty 1 (dynamic) (Not in use) has<br>
&gt; taken no calls yet<br>
&gt; &nbsp; &nbsp; &nbsp; Local/629@call-to-agent/n with penalty 1 (dynamic) (Not in use) has<br>
&gt; taken no calls yet<br>
&gt; &nbsp; &nbsp; &nbsp; Local/627@call-to-agent/n with penalty 1 (dynamic) (Not in use) has<br>
&gt; taken no calls yet<br>
&gt; &nbsp; &nbsp; &nbsp; Local/625@call-to-agent/n with penalty 1 (dynamic) (Not in use) has<br>
&gt; taken no calls yet<br>
&gt; &nbsp; &nbsp; &nbsp; Local/624@call-to-agent/n with penalty 1 (dynamic) (Not in use) has<br>
&gt; taken no calls yet<br>
&gt; &nbsp; &nbsp; &nbsp; Local/622@call-to-agent/n with penalty 1 (dynamic) (Not in use) has<br>
&gt; taken no calls yet<br>
&gt; &nbsp; &nbsp; &nbsp; Local/620@call-to-agent/n with penalty 2 (dynamic) (Not in use) has<br>
&gt; taken no calls yet<br>
&gt; &nbsp; &nbsp; &nbsp; Local/614@call-to-agent/n with penalty 2 (dynamic) (Not in use) has<br>
&gt; taken no calls yet<br>
&gt; &nbsp; &nbsp; &nbsp; Local/644@call-to-agent/n with penalty 2 (dynamic) (Not in use) has<br>
&gt; taken no calls yet<br>
&gt; &nbsp; &nbsp; &nbsp; Local/643@call-to-agent/n with penalty 2 (dynamic) (Not in use) has<br>
&gt; taken no calls yet<br>
&gt; &nbsp; &nbsp; &nbsp; Local/609@call-to-agent/n with penalty 2 (dynamic) (Not in use) has<br>
&gt; taken no calls yet<br>
&gt; &nbsp; &nbsp; &nbsp; Local/641@call-to-agent/n with penalty 2 (dynamic) (Not in use) has<br>
&gt; taken no calls yet<br>
&gt; &nbsp; &nbsp; &nbsp; Local/605@call-to-agent/n with penalty 2 (dynamic) (Not in use) has<br>
&gt; taken no calls yet<br>
&gt; &nbsp; &nbsp; &nbsp; Local/601@call-to-agent/n with penalty 2 (dynamic) (Not in use) has<br>
&gt; taken no calls yet<br>
&gt;<br>
&gt;<br>
&gt; [root@pbx asterisk]# asterisk -rx &quot;core show channels&quot;<br>
&gt; Channel &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Location &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; State &nbsp; Application(Data)<br>
&gt; SIP/641-08cef808 &nbsp; &nbsp; (None) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Up &nbsp; &nbsp; &nbsp;Bridged<br>
&gt; Call(Local/641@call-to<br>
&gt; Local/641@call-to-ag 641@call-to-agent:10 Up &nbsp; &nbsp; &nbsp;Dial(SIP/641|120|rtT)<br>
&gt; Local/641@call-to-ag s@call-to-agent:1 &nbsp; &nbsp;Up &nbsp; &nbsp; &nbsp;Bridged Call(Zap/65-1)<br>
&gt; Zap/65-1 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; s@cola-admin11:1 &nbsp; &nbsp; Up &nbsp; &nbsp; &nbsp;Queue(QUEUE_01|tT|||1800)<br>
&gt; Zap/64-1 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; s@horario-valido-tv: Up &nbsp; &nbsp; &nbsp;(None)<br>
&gt; SIP/625-09766788 &nbsp; &nbsp; (None) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Up &nbsp; &nbsp; &nbsp;Bridged<br>
&gt; Call(Local/625@call-to<br>
&gt; Local/625@call-to-ag 625@call-to-agent:10 Up &nbsp; &nbsp; &nbsp;Dial(SIP/625|120|rtT)<br>
&gt; Local/625@call-to-ag s@call-to-agent:1 &nbsp; &nbsp;Up &nbsp; &nbsp; &nbsp;Bridged Call(Zap/66-1)<br>
&gt; Zap/66-1 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; s@cola-admin4:1 &nbsp; &nbsp; &nbsp;Up &nbsp; &nbsp; &nbsp;Queue(QUEUE_02|tT|||1800)<br>
&gt; SIP/620-09358088 &nbsp; &nbsp; (None) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Up &nbsp; &nbsp; &nbsp;Bridged<br>
&gt; Call(Local/620@call-to<br>
&gt; Local/620@call-to-ag 620@call-to-agent:10 Up &nbsp; &nbsp; &nbsp;Dial(SIP/620|120|rtT)<br>
&gt; Local/620@call-to-ag s@call-to-agent:1 &nbsp; &nbsp;Up &nbsp; &nbsp; &nbsp;Bridged Call(Zap/63-1)<br>
&gt; Zap/63-1 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; s@cola-admin13:1 &nbsp; &nbsp; Up &nbsp; &nbsp; &nbsp;Queue(QUEUE_01|tT|||1800)<br>
&gt; Zap/94-1 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (None) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Up &nbsp; &nbsp; &nbsp;Bridged<br>
&gt; Call(SIP/623-b2b1d070)<br>
&gt; SIP/623-b2b1d070 &nbsp; &nbsp; 82714269@total:3 &nbsp; &nbsp; Up<br>
&gt; Dial(Zap/g3/2714269||tTrRS)<br>
&gt; SIP/615-08a892c0 &nbsp; &nbsp; (None) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Up &nbsp; &nbsp; &nbsp;Bridged<br>
&gt; Call(Local/615@call-to<br>
&gt;<br>
&gt; Please help me with this issue!<br>
&gt;<br>
<br>
</div></div>Local channels don&#39;t support state information in Asterisk 1.4. For<br>
that you either need to use 1.6 or backport of state_interface for<br>
1.4. Then you have to set call-limit for peers, and specify<br>
state_interface device when logging in agents.<br>
<br>
For more information please search for &quot;asterisk queue state&quot;, as this<br>
has been discussed several times.<br>
<br>
Regards,<br>
Atis<br>
<br>
--<br>
Atis Lezdins,<br>
VoIP Project Manager / Developer,<br>
<a href="mailto:atis@iq-labs.net" target="_blank">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>
AstriCon 2008 - September 22 - 25 Phoenix, Arizona<br>
Register Now: <a href="http://www.astricon.net" target="_blank">http://www.astricon.net</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>
</blockquote></div><br>