For devices that read firmware updates from HTTP, TFTP or FTP directories, you can create a settings descriptor file that will be used to generate a web page to upload files for the device and deliver them to the appropriate directory.
Add a new upload specification to any existing Spring bean file. For example
sipXconfig/neoconf/src/org/sipfoundry/sipxconfig/phone/phone.beans.xml
<bean id="polycomFirmware" class="org.sipfoundry.sipxconfig.upload.UploadSpecification"> <!-- Use upload spring bean --> <constructor-arg value="upload"/> <!-- Directory to find upload.xml file --> <constructor-arg value="wayCool"/> <!-- Label --> <constructor-arg value="Way Cool Device"/> </bean> |
Create following file
sipXconfig/neoconf/etc/wayCool/upload.xml
<?xml version="1.0"?> <!DOCTYPE model PUBLIC "-//SIPFoundry//sipXconfig//Model specification 2.0//EN" "http://www.sipfoundry.org/sipXconfig/dtd/setting_2_0.dtd"> <model> <group name="firmware"> <label>Firmware</label> <description>Firmware for Way Cool Device</description> <setting name="wayCoolFirmware.dat"> <label>wayCoolFirmware.dat</label> <type><file><contentType>application/binary</contentType></file></type> <description>Firmware binary.</description> </setting> <group> </model> |
The group and setting names and labels are irrelevant, but pick meaningful values incase you need to process the settings.
upload.xml – all firmware files |
and multiple upload specification entries in the spring file for 3.0 and 4.0