The ability to include firmware in sipX builds and have it activated by default is desired. This would allow us to create a distribution that has firmware installed by default.
Reference from old issue:
http://scm.sipfoundry.org/viewsvn/sipX?view=rev&rev=10213
This allows uploads to added to system from command line.
For example:
sipxconfig.sh --database \
-Dupload.spec=lg-nortelFirmware \
-Dfile.setting=firmware/sip.zip \
-Dupload.file={some file} \
add-upload
this would generally be called from rpm.spec file
By this is not solved yet
As is exists today:
API can only be called once, it will not reupload unless there are no active lgnortel uploads already. This will want to be changed, but we have to consider the ramifications of admin uploading new firmware on their own and rpm effectively downgrading their firmware.
Where I would suggest this be taken:
Add a new upload entry with name "system installed LG-Nortel Firmware"
Add a description telling user to deactive this instead of deleting or updating this if they wish to upload firmware on their own. that way...
On RPM updates, API could look for existing upload entries by name,
if found, update firmware and leave active/inactive state alone
if not found, add new firmware and activate if no other lgnortel uploads exist already (by other names)
Also, Damian mentions there should be a separate RPM just for installing firmware, that would also be responsible for calling this API. I tend to agree.
This can be referenced:
http://thread.gmane.org/gmane.comp.voip.sipx.devel/5950