Commit graph

185 commits

Author SHA1 Message Date
steve-lad 55285cf625 Move install functions from sccp_manager to installer
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
2021-06-20 09:24:19 +02:00
steve-lad de3c58178b Remove Inherit processing
Remove functionality added to hide inherit in default configs - Inherit has been removed from sccpgeneral.xml
2021-06-18 12:10:26 +02:00
steve-lad 57bc13f782 Modify default values
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
2021-06-18 11:58:00 +02:00
steve-lad afe3382aed Move handleSubmit to AjaxHelper 2021-06-17 15:54:04 +02:00
steve-lad 5df918a04b Save Defaults to Db Defaults
Initial changes. Need to update other tables and fields

Minor bugfix in dbinterface

Correct XML version
2021-06-17 15:10:31 +02:00
steve-lad b420f35ad2 WIP Fix formshow prefix logic for IS
Currently only fixed for IS

FormShow was adding the prefix to the full child name, making a useless result.

Need to remove form_prefix from childname to return to db values
2021-06-16 16:58:04 +02:00
steve-lad 790b5f7949 Add vendorconfig data to Edit Device
Translate DB fields to formshow fields

These field translations need to be simplified
2021-06-16 12:42:07 +02:00
steve-lad 5e5cf3ffda Remove unused cases in Save Device
These Fields do not exist in sccpdevice
2021-06-16 07:52:58 +02:00
steve-lad 8c4b0ce240 Disable Inherit in default system button settings
Disable Inherit buttons in system defaults (should only be used for specific devices)

Add Device Vendor settings to Add Device (WIP - may need db change)

Change various names to be more readable
2021-06-15 17:56:37 +02:00
steve-lad fb8f4ec00e Bug Fix - Default line not added on Device Create
Default line was only set after Device edit and save, not after Device creation.
2021-06-15 08:56:19 +02:00
steve-lad 707371cb92 Fix update button labels
Convert modal responses to Toast
Correct reload parameters to stay on page and redraw table
Correct output text
2021-06-14 15:19:45 +02:00
steve-lad 7107dbe86b Fix issue with not saving all settings
An erroneous break instead of continue was truncating sccpsettings

Simplify logic by avoiding create then delete for settings where data was empty
2021-06-13 16:43:31 +02:00
steve-lad 007330159e Disable TZ selection
TZ is a FreePBX property and should be only changed there.

Now only display for info with help

Ensure that at each initiation, we load the system value
2021-06-13 15:39:43 +02:00
steve-lad 3fee812cc6 Get TZ Offset from timezone
Remove unnecessary methods
2021-06-13 13:12:37 +02:00
steve-lad 84925a334e Update TZ selection method
Change Cisco code determination
2021-06-12 07:30:18 +02:00
steve-lad 495ede0df2 Update Sccp_manager.class.php
Update version
2021-06-03 09:05:24 +02:00
steve-lad 8341cba1ca Update Sccp_manager.class.php
Remove unnecessary tests
2021-06-03 08:56:04 +02:00
steve-lad c1f35ace41 Update Sccp_manager.class.php
Remove unnecessary page code - this version only works with chan-sccp >433
2021-06-03 08:37:43 +02:00
steve-lad cd0da5b6a3 Update Sccp_manager.class.php
Reset settings page tab order
2021-06-03 08:25:57 +02:00
steve-lad 13778ce657 Update Sccp_manager.class.php
Move SccpInfo to first tab leaving General as default
2021-06-02 16:39:02 +02:00
steve-lad 7d641e3b2d Update Sccp_manager.class.php
Remove unused methods
Substitute single line methods
Clean up page presentation (this changes the previous tab order)
2021-06-02 16:31:38 +02:00
steve-lad 4620df53c4 Change Function names 2021-06-02 15:30:21 +02:00
steve-lad 6df032c137 Remove unused methods 2021-06-02 15:21:53 +02:00
steve-lad 2f487d1a32 Create BMO Trait
Move BMO code to separate trait
2021-06-02 15:10:12 +02:00
steve-lad 4ee26a9871 Name Changes 2021-06-02 15:03:38 +02:00
steve-lad f6bdd27335 Use Traits to simplify Sccp_Manager.class
Move helper functions to trait
Move Ajax to trait (WIP - next step to create subclass to simplify initialisation)
Rename Directories to eliminate punctuation
Add new directory for traits
2021-06-02 14:55:39 +02:00
steve-lad d0fd1f2cdb Remove incompatible files
Simplify compatibility checking. This version is only compatible with chan-sccp 433 or greater.
2021-05-31 16:11:07 +02:00
steve-lad ee0fda775e Retire Old Interface
Use exclusively AMI interface
Delete oldinterface
Delete srvinterface and move aminterface to Sccp_manager.inc
All calls now pass directly to aminterface
2021-05-31 12:33:35 +02:00
Diederik de Groot 51dad690ef Fix: Default models should have at least 1 button if number is currently no known
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>
2021-05-30 15:03:38 +02:00
steve-lad 4ce789cd3e Fix reversion errors
When rebasing, errors were introduced. This commit reverses those errors. It may also revert some commits
2021-05-29 15:50:04 +02:00
Diederik de Groot 0011581fc0
Merge branch 'PR108' into extension_mobility_rebased_on_develop 2021-05-24 13:46:19 +02:00
Diederik de Groot 9e95071bad
Fix: Default models should have at least 1 button if number is currently no known
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>
2021-04-02 15:30:03 +02:00
steve-lad ef4fc4fe12
Fix Sccp Button Save
Correct PDO statements and implimentation concept
2021-04-02 15:29:36 +02:00
steve-lad 31ac0746ba
Bug fixes
Correct SQL statement
Correct Message Handler
Correct Message interpreter
2021-04-02 15:29:36 +02:00
steve-lad 19e1bb9b3e
Remove dbugs 2021-04-02 15:29:17 +02:00
steve-lad dac622c745
Final version
Standardise some calls and add notes
2021-04-02 15:29:15 +02:00
steve-lad 09beeb449e
Use bindParam on db executes
Use bind param to have stricter typing

Fix bug in Sccp-Manager where key and keyword were not the same
2021-04-02 15:28:55 +02:00
steve-lad 4a3f21dc5d
Further clean ups and annotations
Document changes
2021-04-02 15:28:35 +02:00
steve-lad a1c020c772
Switch to PDO model
Switch to PDO model and correct transactions
2021-04-02 15:27:27 +02:00
steve-lad 91c2d233d4
Use bindParam on db executes
Use bind param to have stricter typing

Fix bug in Sccp-Manager where key and keyword were not the same
2021-04-02 15:25:32 +02:00
steve-lad 3fbccb982f
Update Transactions and fix errors
Reduce quoting level, and fix errors introduced by prior commits
2021-04-02 15:25:32 +02:00
steve-lad 7f047f7c10
Further clean ups and annotations
Document changes
2021-04-02 15:25:31 +02:00
steve-lad 95405190cc
Switch to PDO model
Switch to PDO model and correct transactions
2021-04-02 15:25:31 +02:00
steve-lad 9d29d11a08
Apply PR 101 2021-04-02 15:23:55 +02:00
steve-lad a89866e81e
Bug Fixes and optimisations as a result of issue 106
Fix bugs in Response Class causing exceptions
Update extconfigs class to correctly check database connectors and improve feedback
Move some constructors to start of class for lisibility
Tidy up Response class with Typing to eliminate unnecessary tests
2021-04-02 15:23:54 +02:00
PhantomVl 3bf8857759
-- Bug Fix Delete Empty Key 2021-04-02 15:23:53 +02:00
PhantomVl 7b48b289af
Fixes: #77
Fixes: #82
Fixes: #85
Fixes: #87
--- Bugfix sip protocol
Special thanks for help Diederik de Groot
2021-04-02 15:23:53 +02:00
PhantomVl f93b846dc1
--- Add support for setting "setvar=xxx=xxx" entries
--- Writing sccp.conf also check/create sccp_custom.conf #87
--- Fix the getCodec function. #85
--- Switching around the general deny/permit order. #82
--- Thank Josh2893 for the templet #77
Special thanks for help Diederik de Groot
2021-04-02 15:23:53 +02:00
PhantomVl a3c240b63f
-- Bug fix issues/74 2021-04-02 15:23:52 +02:00
PhantomVl 1e0e19cf26
-- Bug fix Thanks for the help @BossLX 2021-04-02 15:23:52 +02:00