Commit graph

620 commits

Author SHA1 Message Date
steve-lad 97c1f6d5d4 Minor settings changes 2021-07-30 10:18:27 +02:00
steve-lad 60f7d74cf4 Update Sccp Info 2021-07-30 09:12:51 +02:00
steve-lad a267f075c8 include silent lines in extension view 2021-07-30 08:39:53 +02:00
steve-lad d432ff7a05 Ensure that addons cannot be added in edit on devices that do not have addons 2021-07-30 07:27:31 +02:00
steve-lad 472d73489e Update ajaxHelper.php 2021-07-29 17:21:18 +02:00
steve-lad fb25407611 Improve presentation of shared lines 2021-07-29 17:20:43 +02:00
steve-lad f2d15ebd5e Correct del extension to remove all associated buttons 2021-07-29 16:28:05 +02:00
steve-lad 1f910c7e97 Force entry of correct mac address before save is enabled
Move focus to Mac field and stay until a correct Mac address is entered, disabling Save buttons until correct

Motive: a device record with an empty Mac address requires manual removal.
2021-07-29 15:40:23 +02:00
steve-lad d43570b471 Enable addition of sidecars to an existing device 2021-07-29 13:50:31 +02:00
steve-lad b753482898 Correct defaults after db schema change 2021-07-29 08:43:40 +02:00
steve-lad 646a975a5f Update xmlinterface.class.php
Update locale cases for SIP phones
2021-07-29 08:26:11 +02:00
steve-lad 48a2793886 Add directed_pickup field
Previously shown but not updated
2021-07-29 08:05:33 +02:00
steve-lad b659f55170 Remove _ prefixes in db column names
Mariadb does not accept _prefixed fields by spec, and these columns may give future issues. Migrate all fields in installer to remove this prefix (without data loss) and:
Create new view sccplineconfig for chan-sccp where only accepted fields are shown
Update sccpdeviceconfig to only show accepted fields
Update extconfigs.conf to use sccplineconfig
Remove references to _ prefixed fields
2021-07-28 15:48:57 +02:00
steve-lad 4e9dcb09f3 Fix return link if default button changed 2021-07-25 16:03:02 +02:00
steve-lad 26f750296a Fix various issues with buttons
Add choice of default line on add device
Partially fix buttoncount (will not work if default device is selected)
Correct database save logic for buttons - triggers should be OK but more verification needed
Fix various save issues where defaults not correctly set
Delete default buttons when deleting line to avoid orphans
2021-07-25 13:42:42 +02:00
steve-lad 80cf629c0f Update ajaxHelper.php 2021-07-24 09:39:57 +02:00
steve-lad 75858d7cc1 Optimise and add error handling to getFilesFromProvisioner 2021-07-24 09:31:30 +02:00
steve-lad 97cfa12fea Update rewrite.rules 2021-07-23 13:05:09 +02:00
steve-lad 312229d4cf Update rewrite.rules 2021-07-23 12:54:21 +02:00
steve-lad 83d54c0fad Update rewrite.rules 2021-07-23 12:40:30 +02:00
steve-lad 4151b4fdae Restructure languages and locales management
Base off of provision file structure
Store netlang and devlang
Stop usage of extconfig ->sccplang
2021-07-23 12:14:46 +02:00
steve-lad 215cacae41 Get Country tones with locales
Get country files with locales
WIP incompatibility between provision, its rewrite rules and the file structure
WIP - need to clean up get files from provisioner
2021-07-21 16:44:23 +02:00
steve-lad 3a53e9ac8b Optimise database calls
Remove unnecessary post processing on returned object
2021-07-21 12:54:05 +02:00
steve-lad 3475efc2c6 Database request modifications and page improvements
Add device to extensions page - permits to see unassigned  lines and shared lines easily
Reformat status to centred
change 'replace' in sccp class to only 'insert on duplicate key' (UPSET equivalent)
Change request in phoneGrid to left join to show all lines, even unassigned to a device
2021-07-21 11:30:50 +02:00
steve-lad a4aa4eb03b Simplify db queries and change alignment 2021-07-21 08:57:43 +02:00
steve-lad 97c1395eb1 Fix Fill Phone status column
Add db query to include mac to allow join with ami active device data
Change output fields
2021-07-20 18:03:44 +02:00
steve-lad 65f3a6cd37 Fix saving empty num value to db
Replace with NULL
2021-07-20 15:56:44 +02:00
steve-lad 4b40811d60 Fix issue with uninitialised adv.ini
Change logic to ensure adv.ini is initialised - necessary as used __Construct before sccp_manager installer can initialise.
2021-07-20 15:40:35 +02:00
steve-lad be5890e61f Update extconfigs.class.php 2021-07-20 12:55:23 +02:00
steve-lad 477eb69146 Fix phonepersonalisation
Set expected numeric value for phonepersonalization
WIP fix - adv.ini
2021-07-20 12:53:29 +02:00
steve-lad 2898f5e3c9 Fix bug codecs storage
codecs were stored as a ',' separated list while chan-sccp expects a ';' separated list
Correct all existing db values when running installer
make sure that disallow is not unset in installer (set to all)
make sure that disallow is not empty
correct help text
2021-07-20 09:32:01 +02:00
steve-lad b3b3858965 standardise get ext file modal and add via include
Create standard modal for insertion via include in firmcreate class and adserver view
2021-07-19 08:04:12 +02:00
steve-lad d9fa0ad8bf Update module.xml 2021-07-18 12:51:16 +02:00
steve-lad 3d69090767 Fix finding master file 2021-07-18 12:50:53 +02:00
steve-lad 5c4bbaabba Ignore $adv_ini if not set
Installer and sccp_manager construct - empty variable. Do not use if not set (will be set later)
2021-07-18 12:33:08 +02:00
steve-lad 913cbd14c4 Set default for LangDir
When Sccp_manager construct is called by the installer, this variable is not set. The installer sets it later
2021-07-18 12:23:17 +02:00
steve-lad d7fd77dfe8 Get locales from provisioner
Add progress bar and xhr handler
2021-07-18 11:30:19 +02:00
steve-lad 1b32e0977e Optimise locale (language) management
Optimise function calls
Use array functions instead of loops
findInstalledlangs is currently called by the construct - as this is called frequently, maximise its efficiency
2021-07-15 12:12:07 +02:00
steve-lad a4f8fa4600 Impliment retrieving firmware from Provision_sccp
WIP - need to handle exceptions etc
2021-07-14 17:16:27 +02:00
steve-lad ef77bce159 Add retrieve device files 2021-07-14 13:10:15 +02:00
steve-lad 2ffe4028e6 Add download function
WIP - debug with ringtones
2021-07-12 16:32:57 +02:00
steve-lad 6e26428b1d Update rewrite rules
Add header with credits
Add specific rule for sccp_manager
Add correct fields to parse xml for sccpvalues
Add new option to update files from @dkgroot/provision
2021-07-12 13:50:09 +02:00
steve-lad 2b709c9037 remove index.cnf
Is created by extconfigs with actual server values
2021-07-12 12:36:29 +02:00
steve-lad 651f3adb44 Finalise TFTP Mapping treatment
User no longer can select on or pro: If remapping is enabled and rules are set, then must use pro or phones will not find files
Otherwise is Off (flat directory)
2021-07-12 12:26:56 +02:00
steve-lad 5a184ededb Integrate Provision functionality into Sccp_Manager
Create required directory structure
Check if mapping support is enabled
Check if mapping rules are defined
Change options available based on above
Create index.cnf and sccpManagerRewrite.rules
2021-07-11 16:52:24 +02:00
steve-lad 248abe6cb7 Clean up and correct missing save settings
Remove unnecessary method from formcreate
Correct indentation in formcreate
Remove debug code in Sccp.class
correct logic for updating TFTP mode
2021-07-10 17:51:55 +02:00
steve-lad 30cbe1ba95 Correct output regex
Supplied by and thanks to @vaDrn
2021-07-10 13:05:28 +02:00
steve-lad 2a98d8cfdb Override chan-sccp default context 2021-07-10 12:17:46 +02:00
steve-lad 71fef35ebd Finalise FormShowSysDefs
Remove debug conditionals in Sccp_manager
Pass missing arguments for tftpLang
Remove unused items from sccpgeneral.xml
2021-07-10 10:45:42 +02:00
steve-lad ce115dab8b Create formCreate class
Move anonymous class frpm formShowSysDefs to own class
2021-07-10 09:03:06 +02:00