End Point Manager broken

I’ve been playing with the new distro for a few hours, and apart from a few cosmetic and javascript issues that I’ll try to report in the bug tracker, it’s looking really good!

One part doesn’t work at all however: the end point manager.

It blocks on error messages "can’t load … class!"
e.g.
Can’t Load “endpoint_aastra_aap9xxx6xxx_phone” Class!

and the layout looks messy too.

There are also a bunch of javascript errors on the page:

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; WOW64; Trident/4.0; SLCC1; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.5.21022; WWTClient2; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C; .NET4.0E)
Timestamp: Sat, 16 Apr 2011 11:54:36 UTC

Message: Invalid character
Line: 1
Char: 1
Code: 0
URI: http://192.168.0.146/admin/assets/endpointman/js/._ajax_req.js

Message: Invalid character
Line: 1
Char: 1
Code: 0
URI: http://192.168.0.146/admin/assets/endpointman/js/._jquery.coda-slider-2.0.js

Message: Invalid character
Line: 1
Char: 1
Code: 0
URI: http://192.168.0.146/admin/assets/endpointman/js/._jquery.cookie.js

Message: Invalid character
Line: 1
Char: 1
Code: 0
URI: http://192.168.0.146/admin/assets/endpointman/js/._jquery.easing.1.3.js

Message: Invalid character
Line: 1
Char: 1
Code: 0
URI: http://192.168.0.146/admin/assets/endpointman/js/._jquery.jstree.js

Message: Invalid character
Line: 1
Char: 1
Code: 0
URI: http://192.168.0.146/admin/assets/endpointman/js/._jquery.tools.min.js

The green “plus” icon in device list also doesn’t work and generates an “object expected” javascript error.

I hope these (blocking) issues are being worked on?

Thanks, and keep up the good work!

orion,

thanks for bringing this up.

Andy and the rest of the team is trying to determine why this is happening. We are pretty sure it was working and something changed but we’ll get to the bottom of it.

If anyone wants to beat us to it and find the root cause, first 2 rounds of drinks on me when we can get together somewhere. (Or even better - if you want to attend our up coming FreePBX Training, I’ll throw in a substantial discount (but then the first round’s on you though there will be plenty left over!)

For now, if you are planning on listening in, we’ll see you at my presentation later today being web broadcast via the Atlanta Asterisk Users Group!

Where are these “._ajax_req.js” files coming from?

I just checked the package from the mirror and they aren’t even in the tgz. This was fixed in #4950

The other error “class not found” has been fixed here: #5068

Also please be more detailed then “and the layout looks messy too.”

I’m not going to fix anything with a comment like that.

Looks to me like some left over garbage from a mac… resource forks in particular

Please see http://www.freepbx.org/forum/freepbx-distro/distro-discussion-help/end-point-manager-cant-select-product

We should have a new module shortly that fixes this issue.

Put the bug report here on the forum or somewhere else??

Thanks!

By the way is there a good doc anywhere on the endpoint manager?

I’m seeing some problems where the main cfg file gets data instead of variables written to it.
Example: spa504.cfg is a basic config, within it you setup some things you want all the phones to default to, so we have in there the persons name.
When we write/update the files from the manager it creates the spa504g.cfg as well as spaMACXXX.cfg but the spa504g.cfg has the physical name of 1 person hard coded into it instead of the variable so it would be each users name.

Really kind of strange. I spent about 3 hours on this yesterday trashing and recreating the main templates and such to always end up with this problem.

Also, is there any reference guide that shows how they expect you to use the tool?
I feel that certain things aren’t that logical and may be the stem of the problem.
Example, when I edit the global.cfg once I select someone, it should be the global cfg for that model phone ( which I beleive it is ), but this is where I think it ends up writing that users that your editing into that global.cfg into that file hard coded.
Also, the fact that your giving the dial plan and upgrade stuff there in the general area may also be an issue because it allows you to make mistakes instead of using a more global file for those base settings.

BUT I do need to read through some kind of logic flow/ docs to be fair and to insure I’m not being a bad/dumb user…

THanks!

Not really sure I follow you. Can you file a bug report with the files that work for you?

http://www.freepbx.org/trac/newticket

There are only docs that are about one year old. http://projects.colsolgrp.net/documents/27

I saw those in my many searches to resolve the problem. They are outdated and I was trying to understand what they had in mind logic flow wise what the code was doing. I’m pretty sure I understand whats supposed to be there etc, so its a matter of figuring out what happens bug wise.

I posted in a thread a more detailed entry and put some code snippets.
http://www.freepbx.org/forum/freepbx/beta-program-issues/endpoint-manager-issue

Thanks!