Endpoint won't download firmware

I just installed the Endpoint module. Everything appears okay other than the firmware. /tftpboot doesn’t have any firmware files, but it does a few things.

I’m using chrome. I also can’t modify anything any longer. Dragging the versions around and clicking submit just reloads the page as you see it. Something appears to be wrong somewhere.

]# ls -1
0004f221ab17.cfg
0004f221ab17-features.cfg
0004f221ab17-sip-interop.cfg
0004f2260dcf.cfg
0004f2260dcf-features.cfg
0004f2260dcf-sip-interop.cfg
0004f2264748.cfg
0004f2264748-features.cfg
0004f2264748-sip-interop.cfg
0004f2264906.cfg
0004f2264906-features.cfg
0004f2264906-sip-interop.cfg
0004f226aa40.cfg
0004f226aa40-features.cfg
0004f226aa40-sip-interop.cfg
0004f22a7291.cfg
0004f22a7291-features.cfg
0004f22a7291-sip-interop.cfg
0004f281f527.cfg
0004f281f527-features.cfg
0004f281f527-sip-interop.cfg
0004f2e4921a.cfg
0004f2e4921a-features.cfg
0004f2e4921a-sip-interop.cfg
204.cfg
2054.cfg
205.cfg
206.cfg
207.cfg
208.cfg
210.cfg
211.cfg
aastra.cfg
firmwaredownloads
images
legacy_sip.cfg

[root@pbx tftpboot]# du -hs
640K .
[root@pbx tftpboot]#

bump. still not working and i don’t see an updated version of endpoint to install.

I found this in the http error log.
sh: /var/lib/asterisk/bin/endpoint_firmware.php: Permission denied

Ran this and I think its working.
chmod +x /var/lib/asterisk/bin/endpoint_firmware.php

I then ran the script from the shell as user asterisk. (I first tried the gui and it said it was downloading, but there was no wget process running).

Seems to have worked.
[root@pbx tftpboot]# du -hs
1.8G .
[root@pbx tftpboot]#

This worked for me too (using commercial EPM 2.11.0.1-4). I marked both scripts executable just in case.

chmod +x /var/www/html/admin/modules/endpoint/bin/endpoint_firmware.php chmod +x /var/www/html/admin/modules/endpoint/bin/freepbx_engine_hook_endpoint

After associating an extension with a template and regenerating the phone config, EPM downloaded the firmware. Using “tail -f /var/log/httpd/error_log” shows status output on the download.

Regards,
Tim Miller Dyck

The amportal script does a number of permission checks automatically and an “amportal restart” fixes the permission of two scripts above as well. But one would not think to do this necessarily after installing the module for the first time.