[asterisk-gui] Display error in Agents list.
Mat Jones
mat at bibliopolis.com
Wed Dec 13 17:57:31 MST 2006
I was having some weird behavior in 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
Mat
More information about the asterisk-gui
mailing list