[asterisk-gui] Display error in Agents list.
Russell Bryant
russell at digium.com
Wed Dec 13 22:09:04 MST 2006
Mat Jones wrote:
> 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
Thank you for pointing out exactly where the problem is. If you don't mind,
please post this information to http://bugs.digium.com/ to make sure that it
doesn't get lost and to ensure that it gets taken care of.
Thanks,
--
Russell Bryant
Software Engineer
Digium, Inc.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: russell.vcf
Type: text/x-vcard
Size: 266 bytes
Desc: not available
Url : http://lists.digium.com/pipermail/asterisk-gui/attachments/20061213/8fd6b79f/russell.vcf
More information about the asterisk-gui
mailing list