Commit graph

103 commits

Author SHA1 Message Date
stevenA f5e51a52b7 Resolve issue of softkeysets lost across installs 2022-01-28 11:14:34 +01:00
stevenA b752640f81 Update ajaxHelper.php 2022-01-27 18:50:18 +01:00
stevenA 09acfd097d Fix Issue #32
Standardise handling of IED fields (net and ip addresses)
Correct writing to db (seq was assigned a new value which caused duplication in sccpsettings and apparent unsaved data)
Remove inherit button in device and standardise to inherit server settings. Show users what will be set.
2022-01-27 12:03:50 +01:00
stevenA 60777bf3e3 Fix saving of custom soft keysets
Red border if invalid set name
Clean up modal indenting
Define valid chars
Only initialise general section at each save (previously initialised all clearing soft key sets)
2022-01-19 13:46:47 +01:00
stevenA 381fe184bd Fix Issue #59
Correct error in update mode selection
Save all buttons, rather than to last empty - buttons do not need to be allocated sequentially
Remove on duplicate case - add should always be new as either device is new, or have deleted device data before.
2022-01-19 12:07:41 +01:00
stevenA d7ad8397da Update ajaxHelper.php 2022-01-19 08:36:57 +01:00
stevenA 4e17791fa1 Change wincharset selection method
Use utf-8 for java based phones
2022-01-17 10:43:50 +01:00
stevenA 3ce99c94d8 Fix reversion - not returning to correct page after save
Settings and device save require different r=treatment on reload after save
2022-01-10 14:00:07 +01:00
stevenA 34d6e976f2 Fix minor issues when saving settings
Page was not reloading correctly
Devices were not restarting (returning too soon)
2022-01-10 11:31:26 +01:00
stevenA 048077fce8 Update SIP device Handling & Fix Issue#53
Fix Issue #53
Consolidate forms to facilitate maintenance, reduce code, and apply changes to SIP handling introduce for sccp
Delete form.addsdevice.php
Delete form.sbuttons.php
Delete sipconfigs class and move db functions to dbinterface class, and other function to helperfunctions
create new field type for SIP line
update 9951 buttons count in installer
simplify segregation of sip and sccp requests
2022-01-06 15:00:24 +01:00
stevenA 1f73ade196 Fix Issue #54
Do not try to write SEP file if no line defined. Save settings and warn user via toast
Fix feedback to ajax by separately submitting data before return
Fix freepbx overwriting data and causing fail, by separating json into two blocks and only parsing the first
Fix return to tab on save (set location hash) when tabs changed in settings
Fix return to calling page on save when device updated
2022-01-04 14:41:43 +01:00
stevenA 198b3fffa8 Update save SIP device
Fail if no valid FreePbx sip bindings available

Fix SIP display issue

Correct line protocol selection
2022-01-02 13:06:41 +01:00
steve-lad 61beae544e
Merge branch 'develop' into Fix-issue-#47 2021-12-30 15:27:15 +01:00
stevenA c473c62ada Fix issue #47 - Defaults toggling with repeated saves
Remove unused group from server.settings.php
Correct testing for use of system defaults
Correct application of system defaults
ToDo:Numeric values are not being saved, or do not revert to defaults when button clicked
2021-12-30 15:22:20 +01:00
stevenA f4aa2eda1c Fix writing settings to sccp.conf
Only write chan-sccp allowed settings to sccp.conf
Clean sccp.conf on install
Move createDefaultSccpConfig to traits so that can access from installer
tighten calls to createDefaultSccpConfig
2021-12-30 09:39:28 +01:00
stevenA 0bc2eed76b Fix dndFeature setting not saved
dndFeature setting was not saved
check for existence of chan-sccp flags
add helper to list chan-sccp flags
fix version compatibility check
update version to 14.3.0.19
2021-12-29 12:42:57 +01:00
steve-lad a2217e6e37 Fix issue #39
Get masterFilesList at install direct from Provisioner. If not available, install a copy from the module
2021-12-27 11:09:42 +01:00
steve-lad 67f2a8b2a3 Quote device name in xpath request
Xpath requires quotes if non numeric device name (eg 894x)
2021-10-14 09:12:57 +02:00
steve-lad 2dc613f063 Fix variable name
arr_data was mistyped
2021-09-21 10:35:10 +02:00
steve-lad 8f6c7be74e Optimise handle submit
Change order of treatment of returned data
Handle db calls outside of loops
Optimise parsing
2021-08-15 13:07:36 +02:00
steve-lad b7d5851643 Update helperFunctions.php 2021-08-10 08:06:36 +02:00
steve-lad 031ef0087e Compatibility update 2021-08-09 13:56:18 +02:00
steve-lad 91d6ad2f48 Fix incompatibility with new Describe table 2021-08-09 09:23:00 +02:00
steve-lad 0b03d58c09 Remove debug code and update version 2021-08-08 09:57:36 +02:00
steve-lad 481c8929a9 Correct handling of device vendor settings
Prefix was incorrect following removal of _column names
2021-08-08 09:56:04 +02:00
steve-lad 8dc1175b37 Update installer to add parent extensions to sccpline if they exist
Previously ignored sccp extensions in freepbx devices and so created 'orphans'. Now create rows for sccpline for devices that already exist as sccp extensions in devices.

Remove dbug code
2021-08-08 09:03:05 +02:00
steve-lad b30340eab5 Update ajaxHelper.php 2021-08-07 16:07:18 +02:00
steve-lad 6775b6686b Simplify getPhoneGrid 2021-08-01 14:54:17 +02:00
steve-lad 4ffcfaf6b7 Correct getExtensionGrid method and optimise
Was dropping last line
Logic was overly complicated; optimise as called frequently
2021-08-01 13:58:11 +02:00
steve-lad 28bb5a63da Optimise validate part of getSccpModelInformation
Remove needless iterations and use array functions.
Use basename to remove file extension to facilitate this
2021-08-01 11:57:03 +02:00
steve-lad ab7b295b87 switch basedir path source
Use $amp_conf['AMPWEBROOT'] instead of $_SERVER['DOCUMENT_ROOT'] as at least in one case the latter appears to be empty
2021-07-31 17:07:37 +02:00
steve-lad d8d2f946ce Minor optimisations 2021-07-31 15:41:32 +02:00
steve-lad 43a656cebc Correct XML Path in installer and optimise findAllFiles
XML Path in installer was in single quotes - corrected
Remove unnecessary tests in findallfiles
2021-07-31 12:30:24 +02:00
steve-lad b7a64e854f Update ajaxHelper.php 2021-07-30 14:05:59 +02:00
steve-lad e8cabfbd1a Improve parsing of firewall rules 2021-07-30 14:05:00 +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 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 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 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 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