Automatic firmare update on Sangoma P370 (and others) failure: 404 Not Found

I have few Sangoma P phones (310, 330, 370) but I’m unable to update firmware automatically with Endpoint Manager.

I was only able to manual update and this means also I’m unable to update once provisioned “by server” because the web access is disabled.

For example I have a P370 that was manually updated a month ago (version 4_24_3), I recently added another P370 that was on a old previous version and it didn’t update.

In Endpoint Manager / Firmware Management in installed the v1.79 in firmware slot 1 (so P370 shoul be 4_25_1 for example), my templates reference the Firmware Slot 1, I checked the extention configuration in /etc/asterisk/dpma/phone_configs and the xml include a url like

https://user:[email protected]:2096/digium/1/P370.eff

but the firmware is not installed on reboot/reconfigure.

If I try to wget that url, even from the same freepbx machine, the answer is

Resolving pbx.mydomain.tld (pbx.mydomain.tld)... 127.0.0.1, ::1
Connecting to pbx.mydomain.tld (pbx.mydomain.tld)|127.0.0.1|:2096... connected.
HTTP request sent, awaiting response... 401 Unauthorized
Authentication selected: Basic realm="Restricted"
Reusing existing connection to pbx.mydomain.tld:2096.
HTTP request sent, awaiting response... 404 Not Found
2025-01-24 12:20:03 ERROR 404: Not Found.

I serached for *.eff files in the whole FreePBX machine and I found nothing.

As a comparison, downloading the background image from the same machine for the same extension with a similar url, succeed.

Hi @unlikely ,

You can find downloaded firmware files in the below path

/tftpboot/digium/1

If there are no files in the above path, please re-download firmware files in firmware management.

Go to firmware management remove the firmware (1.79) & submit. Then add the same firmware version once again, then submit, this will download firmware files once again. When download starts, we can see the download progress in the firmware management page.

If still an issue, then please check if there are any firewall restrictions which causes download issues.

Thanks

Hi @girishmani

/tftpboot/digium is empty, even after the procedure your recommend.
I can’t see any visual feedback the firmware is downloading.
FreePBX should be allowed in the firewall to access the Internet on common ports.

What address/port FreePBX try to contact for firmware download? I’ll do a double check.

EDIT: I can see several successfull connection to some ip addresses, https port, but nothing is placed in /tftpboot/digium. I also tried with very old firmware I’m sure I never tried to download before.

Hi @unlikely ,

Looks like firmware site is being blocked in your network. Please try below command in your pbx. If not able to download, allow this URL in your network.

wget http://ct.schmoozecom.net/digium.1.79.tar.gz

Once this URL is allowed, then re-try the procedure of downloading firmware from “firmware management” in endpoint module.

Thanks

Yes, that domain is blacklisted.
Why?

Hi @unlikely ,

Please unblock the domain - http://ct.schmoozecom.net and give a try.

Thanks

After unbloking that blacklisted domain download worked, I finally see the download progress and files were placed in tftpboot.

Before there was any message/error in the ui.