Commit graph

226 commits

Author SHA1 Message Date
steve-lad 45db467e5d Remove PHP % incompatible code 2021-04-02 13:17:33 +02:00
steve-lad 42717424a2 Update dbinterface.class.php
Correct syntax
2021-03-31 13:38:03 +02:00
steve-lad b79498dcb5 Fix Sccp Button Save
Correct PDO statements and implimentation concept
2021-03-29 16:22:15 +02:00
steve-lad e3116d39cb Update dbinterface.class.php
Check that labels exist before binding or an exception will occur
2021-03-24 08:59:13 +01:00
steve-lad 03dd9bed5a Correct string quoting
String quoting was incompatible with PHP 7
2021-03-23 07:08:36 +01:00
steve-lad 118ff43ec4 Update dbinterface.class.php
Bug fix
2021-03-18 07:12:59 +01:00
steve-lad fe6ff74608 Bug fixes
Correct SQL statement
Correct Message Handler
Correct Message interpreter
2021-03-17 09:48:20 +01:00
steve-lad f560a1e1be Remove tmp nfs files 2021-03-14 14:04:46 +01:00
steve-lad 815e56994b Update install.php
Populate sccpdevmodel if empty
2021-03-13 16:48:41 +01:00
steve-lad c24f6ad8d9 Merge Fix-dbinterface-class 2021-03-13 15:50:45 +01:00
steve-lad fdf6c2ae83 Merge branch 'Fix-dbinterface-class' into Issue-106 2021-03-13 15:50:17 +01:00
steve-lad da9517a335 Apply PR 101 2021-03-13 15:10:24 +01:00
steve-lad 7030ec2bb5 Migrate from global db object
As per FreePBX BMO, no longer use global db object
2021-03-13 14:58:30 +01:00
steve-lad 9ae3638d04 Correct type declarations
type declarations must be lowercase or will be treated as local instance names
2021-03-13 11:35:35 +01:00
steve-lad cc8eb549d0 Fix exception if sccpsettings table does not exist
Before the installer can create sccpsettings, FreePBX instantiates an SCCP_Manager object which requires sccpsettings.
Catch the exception and create the table
2021-03-13 11:21:12 +01:00
steve-lad 0f9ebb8cd1 Tidy up
Remove unused variables
Close socket if not using
2021-03-12 14:40:31 +01:00
steve-lad d5290f18cf Tighten Ami controls
Check that have compatible version of chan-sccp for AMI and disable AMI  if not found
Check returned values
Add new classes for response to reduce testing
2021-03-12 14:03:50 +01:00
steve-lad 2b07718c30 Correct Field and add new event classes
add 2 new event classes for SCCPShowDevice

correct translator in ShowSCCPDevice_Response
2021-02-28 13:33:41 +01:00
steve-lad 6e2101d4fd Tidy up exception handling
Simplify handling of AMI lists and trap exceptions
2021-02-27 10:00:26 +01:00
steve-lad c6c2134e03 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-02-24 15:22:04 +01:00
steve-lad 3362f5a7cf Update dbinterface.class.php 2021-02-11 15:01:57 +01:00
steve-lad 80923f5ce1 Remove dbugs 2021-02-11 12:52:08 +01:00
steve-lad 6bfa311281 Final version
Standardise some calls and add notes
2021-02-11 12:46:37 +01:00
steve-lad 63e5be2cce Merge branch 'Fix-dbinterface-class' of https://github.com/steve-lad/sccp_manager into Fix-dbinterface-class 2021-02-11 12:41:05 +01:00
steve-lad 73ea3023eb 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-02-09 12:48:22 +01:00
steve-lad 7d7b8cdd05 Update Transactions and fix errors
Reduce quoting level, and fix errors introduced by prior commits
2021-02-09 12:48:22 +01:00
steve-lad 124f7052eb Further clean ups and annotations
Document changes
2021-02-09 12:48:22 +01:00
steve-lad 22a4eb6e9e Cleaning up
Simplify structure and fix errors
2021-02-09 12:45:37 +01:00
steve-lad 5e5633ed7b Switch to PDO model
Switch to PDO model and correct transactions
2021-02-09 12:45:37 +01:00
steve-lad 7993eec487 Test for chan_sccp_b version compatibility
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.
2021-02-09 12:45:36 +01:00
steve-lad b3d31b669a Fix assignment sccp_compatible
Sccpvalues key and keyword must be same or causes hidden DB warnings because of duplicate primary keys after write / read / write
2021-02-09 12:43:26 +01:00
steve-lad 175346c2c1 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-02-09 12:31:06 +01:00
steve-lad 89d4e45f5e Update Transactions and fix errors
Reduce quoting level, and fix errors introduced by prior commits
2021-02-08 17:41:19 +01:00
steve-lad 6664ab97af Further clean ups and annotations
Document changes
2021-02-08 15:27:35 +01:00
steve-lad 1972e53eef Merge branch 'Fix-dbinterface-class' of https://github.com/steve-lad/sccp_manager into Fix-dbinterface-class 2021-02-08 10:24:02 +01:00
steve-lad 22e1939ace Cleaning up
Simplify structure and fix errors
2021-02-07 16:09:35 +01:00
steve-lad c104b0e8fe Switch to PDO model
Switch to PDO model and correct transactions
2021-02-07 15:02:45 +01:00
steve-lad c1fb9370bd Test for chan_sccp_b version compatibility
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.
2021-02-07 14:48:49 +01:00
steve-lad 14199fca2e Switch to PDO model
Switch to PDO model and correct transactions
2021-02-06 17:26:37 +01:00
Phantom 2f854e7273
Merge pull request #93 from andreadiotta/fix_chan-sccp_version_detect
Fixed recognition of chan-sccp release version 4.3.3
2021-02-05 12:15:14 +03:00
Phantom 2c28342286
Merge pull request #98 from steve-lad/Fix-SoftKeys
Fix soft keys
2021-02-05 12:14:07 +03:00
Phantom c0cf0b15d7
Merge pull request #97 from steve-lad/Update-AMI-getRealTimeStatus
Update ami get real time status
2021-02-05 12:10:59 +03:00
Phantom e31b4bf993
Merge pull request #95 from steve-lad/Improve-Page-Performance
Improve page performance
2021-02-05 12:09:55 +03:00
Phantom 30ba68d03e
Merge pull request #99 from steve-lad/Fix-Installer
Installer failed to update db version
2021-02-04 14:29:59 +03:00
steve-lad d26fbd719d Installer failed to update db version
Error in sytax at 745, and in exception handler at 747

Tidied up messages

Standardised Exception handler trap

Atom deleted whitespaces
2021-02-02 10:15:18 +01:00
steve-lad 26d9554c05 Updated GenericResponse
Updated generic response handler for table case
2021-01-28 11:54:27 +01:00
steve-lad c929649909 Update AMI Response
Bring branch up to level of previous Pull which can now be deleted
2021-01-28 11:18:48 +01:00
steve-lad 48041fc62c Cleaned up messages
Improved message readability. Atom removed extraneous white spaces and lines
2021-01-28 10:25:02 +01:00
steve-lad d5c8cc9ab2 Match to previous commit
Add missing comments
2021-01-28 10:00:10 +01:00
steve-lad 80fbf7b1b4 Remove extraneous calls
Duplicate calls from page.settings removed
2021-01-28 08:11:21 +01:00