[Home]

Summary:ASTERISK-08351: Display error in Agents list
Reporter:Mathew Jones (matjones)Labels:
Date Opened:2006-12-14 10:57:31.000-0600Date Closed:2006-12-18 17:34:46.000-0600
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Core/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:On the Call Queue page the agent list seemed to have the first character of every agent name cut off. I checked into the code in queues.html, and found the error.

queues.conf line 352/497

The code does a substr(8) and also a substr(0,4). One to parse the agent number, one to parse the agent name. On my system i have chosen 3 digit extensions instead of 4, so this threw off all the calculations for parsing. In my case, I needed substr(7) and substr(0,3) to show the correct info.

I only just started looking at the source, so im not sure if there is a variable in which the extension length is stored. The code should be modified to take into account this extension length. something like this, where extlen is the extension length.

$('agents').options[k].innerHTML.substr(extlen + 4) --- to get agent name

AND

$('agents').options[k].innerHTML.substr(0,extlen)  --- to get agent number

There are several other places in the same page that would need such a fix also.
Comments:By: stadsj (stadsj) 2006-12-17 14:51:30.000-0600

I can confirm that behavior. But what is worse, the command asterisk -rx "show agents" produces a truncated output, so some agents are not shown. This depends on the output and when some agent status is changing (ringing or talking) the output can be complete or truncated. It looks like some characters affect the way the command produces list of agents. In the same time, on the console the output from "show agents" is always correct. This was observed in 1.2.9.1

By: Serge Vecher (serge-v) 2006-12-18 09:49:27.000-0600

stadsj: the issue you are describing with "show agents" has been fixed a long time ago, the latest Asterisk release is 1.2.14.

By: Pari Nannapaneni (pari) 2006-12-18 17:34:46.000-0600

I have fixed this issue in commit 172 .. but there is a possibility that i did not update the code in all the required places. Feel free to reopen this ticker if you still find realted errors in queues.html or any other page.

-Pari