DB object returns errors on warnings, so was failing.
Ignore the warnings and only die on exceptions (usually violations) as it is normal that there are warnings if we are changing VARCHAR to ENUM
- write a sentinel probe file to the known/possible distro tftp directories
- try fetching it through tftp
- if we manage to fetch the file, we have the correct path
- remove sentinel probe file
When creating directories in tftpboot directory we should not set write permissions, using 0755 instead.
Merge data_values and dev_config so that device specific settings are written to the SEP file
Add sccp general device defaults
Allow saving empty sccpvalues
Add new fields to sccpdevice
move phonepersonalization to sccpdevice from sccpline
Change advanced display block for personalisation to correctly pickup defaults
Move initial defaults reading from Construct to Install
Move initVarFromXml to helper functions - no longer used as defaults should come from db
Remove extraneous initialisations from Sccp_manager - these are now handled in Installer
Save TFTP structure to sccpsettings in Installer
Pass tftp_root to extconfigs ( if changed or uninitialised, was not written back to settingsFromDb before being passed to extconfigs
Remove ancillary function to traits
Move tftp directory management back to extern configs
Remove call to extern configs from InitialiseSccpPath and so from Construct
Need to add call to updateTftpStructure when settings changed ---WIP ---
Change core driver to be an include
Move driver to sccpManClasses to improve maintainability and eliminate possible version issues
Add driver in installer (remove
from extConfigs)
Create sccp.conf in installer if it does not exist (remove from extconfigs)
Update extconfigs.class.php
Update Sccp.class.php.v433
Change sccpgeneral to remove inherit - now inherit default values automatically
Add default values to form groups
Revert changes informShow
Update getTableDefaults to better manage underscores with chan-sccp
Change Defaults in Install
To avoid unnecessary changes to chan-sccp, these fields are prefixed with an underscore and should be ignored.
They are used to create the SEPXXXX file
Use exclusively AMI interface
Delete oldinterface
Delete srvinterface and move aminterface to Sccp_manager.inc
All calls now pass directly to aminterface
Enh: allow all model information to be edited.
Fix: edit/load loadinformationid
Fix: Modal Title -> Model
With help from @steve-lad
References: #91
Signed-off-by: Diederik de Groot <dkgroot@talon.nl>
Enh: allow all model information to be edited.
Fix: edit/load loadinformationid
Fix: Modal Title -> Model
With help from @steve-lad
References: #91
Signed-off-by: Diederik de Groot <dkgroot@talon.nl>
Before the installer can create sccpsettings, FreePBX instantiates an SCCP_Manager object which requires sccpsettings.
Catch the exception and create the table
SoftKeySets fails with chan_sccp-b prior to revision number 11048.
Check the version with the installer, and subsequently to ensure do not get exception.