Commit graph

120 commits

Author SHA1 Message Date
stevenA 16ee04699b Upgrade Phone Types View
Fix Enable/Disable buttons in Phone Types - now contextual on page
Reformulate sub views (enabled or disabled not all)
Change page Layout and formatting
Fix response feedback
Tidy up html
Fix issue with running validate
2022-01-21 08:16:12 +01:00
stevenA 485ce3fe3a Add FW and Template availability to sccpdevmodel
Rename menu items
Add new fields to sccpdevmodel to show existence of firmware and template files, thereby reducing load times.
2022-01-21 08:11:14 +01:00
stevenA e9a3bf34df Continued Optimisations and Cleaning
Optimise return values from AMI to avoid reformatting
Simplify validate logic
Optimise treatment of ami raw message
Optimise return values from getDb_model_info and clean up method name
Optimize add device moving functions outside of loop
Define unique names for script methods between SIP and SCCP as in same page
2022-01-21 08:11:08 +01:00
stevenA 2229eef432 Optimise Hint processing
Remove hint processing from __Construct and place in getbuttons, only place where used
Return hint information in correct format from ami, to avoid second formatting
Optimise db calls for hints to speed loading of add/edit device.
2022-01-21 08:05:35 +01:00
stevenA ce383089b8 Revert "Update Response.class.php"
This reverts commit 99c6b8a9b5a84fef0338952c5ff90455b22cd2e9.
2022-01-21 08:04:30 +01:00
stevenA 6b5cd413d7 Update Response.class.php
Change to only modify certain returned fields from convertTable
Need to validate changes for softkeysets as now only return sets and not mode
2022-01-21 08:04:29 +01:00
stevenA 8961ebd5de Optimise aminterface, and calls to it
Only get activeDevices once in doConfigPageInits
Delete redundant functions in Aminterface class
Optimise json handling
2022-01-21 08:04:29 +01:00
stevenA 519c9a1f3b Optimise aminterface class
Remove duplicate functions
Remove legacy tests from _Construct
Optimise JSON handling (eliminate duplicate parsing of rawMessage)
Optimise Message class _Construct - high load so minimise unnecessary calls
2022-01-21 08:04:29 +01:00
stevenA 67428fb3be Clean up dbinterface class
Change db search criteria for sip / sccp to improve performance
Use Toast for Save and continue success message
Improve db write performance by simplifying formatting
2022-01-21 07:45:19 +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 360ceea6cd Upgrade Installer
Installer was dropping new 14.3 columns data as these columns did not exist in module.xml schema.
Modify schema to include all columns, including legacy columns, and then move data prior to modifying schema.
2022-01-15 10:48:36 +01:00
stevenA 6808154c3a Update xmlinterface.class.php
Return binary vendor config values when necessary
2022-01-13 13:08:34 +01:00
stevenA e088deee12 Update xmlinterface.class.php
Fix langcode selection
2022-01-13 11:34:12 +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 8f91e2c6e6 Update sipconfigs.class.php 2022-01-02 14:24:47 +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
stevenA 21f9123ece Update formcreate.class.php
Clean up form create
2022-01-01 16:37:17 +01:00
stevenA 3381ad189b Update formcreate.class.php
Clean up code
2022-01-01 16:28:36 +01:00
stevenA 2d9a272589 Update xmlinterface.class.php
change phonePersonalization from camel
2022-01-01 13:47:03 +01:00
stevenA 378d3b2ff7 Fix Issue #49 and improve handling of edit defaults
keepalive was on 2 pages, so the value was being written then overwritten

Improved handling of customise and restore javascript to ensure that if the option was subsequently unselected, the original value was retained
2022-01-01 12:44:02 +01:00
stevenA 8953484e1f Fix reset of defaults for text fields
Still need to address bindaddress:port and externalIP: Name
2021-12-31 15:01:02 +01:00
stevenA 8268bbf81a Fix restore defaults for radio buttons
Fix restore defaults for radio buttons
2021-12-31 12:45:12 +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 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
stevenA 3737462fa7 replace vtmp_key 2021-12-29 08:55:09 +01:00
stevenA 64ab034443 Remove vendor config prefix when matching data in create SEP Xml
Vendor config data is no longer prefixed. Create xml was looking for a prefix and so no vendor config data was updated
2021-12-28 16:06:09 +01:00
stevenA 88409eb6c8 Change label on sccp connector
Change from default to legacy
2021-12-28 11:30:40 +01:00
steve-lad c209932eb5 Get all chan-sccp settings
Prior only included general section - now get from all sections

Get all settings fields even if empty or SccpClass will raise an exception
2021-08-10 09:48:53 +02:00
steve-lad 3a1a89fdb8 Update Sccp.class.php.v433 2021-08-10 08:11:08 +02:00
steve-lad fbb61be0f1 Update Sccp.class.php.v433 2021-08-10 08:10:30 +02:00
steve-lad 90729f74aa Update for compatibility with PHP 7.4
PHP 7.4 gives warnings that are handled as exceptions
2021-08-10 07:08:10 +02:00
steve-lad 91d6ad2f48 Fix incompatibility with new Describe table 2021-08-09 09:23:00 +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 31e8a48e12 Add videomode select - dropped in earlier commit 2021-08-07 16:01:19 +02:00
steve-lad 0f352eeb59 Fix addition of new device when not in db
Partial fix for issue#29

Populate available fields
Optimise code
2021-08-07 11:03:33 +02:00
steve-lad 14215b64ca Finalise chan-sccp build info 2021-08-06 08:42:39 +02:00
steve-lad 6567923ff1 Add chan-sccp build info to Sccp Info 2021-08-06 08:24:53 +02:00
steve-lad b3fc62caa7 Update dbinterface.class.php 2021-08-04 13:22:42 +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 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 e313b9da3f Change pathname style from {} to .
Instability seen when pathnames with globals enclosed in {} - revert to . style pathnames
2021-07-30 22:43:35 +02:00
steve-lad e8cabfbd1a Improve parsing of firewall rules 2021-07-30 14:05:00 +02:00
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 f2d15ebd5e Correct del extension to remove all associated buttons 2021-07-29 16:28:05 +02:00
steve-lad d43570b471 Enable addition of sidecars to an existing device 2021-07-29 13:50:31 +02:00