Commit graph

229 commits

Author SHA1 Message Date
Diederik de Groot 85633c64cb
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-23 08:22:51 +02:00
Diederik de Groot 7c8d948cb6
parse outboundcid content into cid_num and cid_name sccpline fields
If outboundcid contains '"name" <num>' the content needs to be split to cid_name and cid_num.
If not the content should be a number and should be copied to cid_num only, in that case we fill cid_name with the value of $label

Fixes: #72

Signed-off-by: Diederik de Groot <dkgroot@talon.nl>
2021-05-23 08:22:51 +02:00
Diederik de Groot d7aced67b9
Move the disallow box to the top of the form, the order is important.
Signed-off-by: Diederik de Groot <dkgroot@talon.nl>
2021-05-23 08:22:51 +02:00
steve-lad 64be70abe4
Remove PHP % incompatible code 2021-05-23 08:22:51 +02:00
steve-lad 06689aaaed
Update dbinterface.class.php
Correct syntax
2021-05-23 08:22:51 +02:00
steve-lad c9cf108852
Fix Sccp Button Save
Correct PDO statements and implimentation concept
2021-05-23 08:22:51 +02:00
steve-lad f523082aad
Update dbinterface.class.php
Check that labels exist before binding or an exception will occur
2021-05-23 08:22:50 +02:00
steve-lad 1a3b60e568
Correct string quoting
String quoting was incompatible with PHP 7
2021-05-23 08:22:50 +02:00
steve-lad fec66c1d8c
Update dbinterface.class.php
Bug fix
2021-05-23 08:22:50 +02:00
steve-lad 1ae967da84
Bug fixes
Correct SQL statement
Correct Message Handler
Correct Message interpreter
2021-05-23 08:22:50 +02:00
steve-lad e6006c1e81
Remove tmp nfs files 2021-05-23 08:22:50 +02:00
steve-lad 8683815e65
Update install.php
Populate sccpdevmodel if empty
2021-05-23 08:22:50 +02:00
steve-lad d3beeb3e7b
Merge Fix-dbinterface-class 2021-05-23 08:22:50 +02:00
steve-lad acfae0abe3
Migrate from global db object
As per FreePBX BMO, no longer use global db object
2021-05-23 08:22:50 +02:00
steve-lad de8f024cbf
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-05-23 08:22:50 +02:00
steve-lad 34f66b5b6d
Update dbinterface.class.php 2021-05-23 08:22:49 +02:00
steve-lad ddbc234be5
Remove dbugs 2021-05-23 08:22:49 +02:00
steve-lad 0ce869281b
Final version
Standardise some calls and add notes
2021-05-23 08:22:49 +02:00
steve-lad 379c28cf19
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-05-23 08:22:49 +02:00
steve-lad b895da31f9
Update Transactions and fix errors
Reduce quoting level, and fix errors introduced by prior commits
2021-05-23 08:22:49 +02:00
steve-lad 879c0b3af1
Further clean ups and annotations
Document changes
2021-05-23 08:22:49 +02:00
steve-lad eff1479d2b
Switch to PDO model
Switch to PDO model and correct transactions
2021-05-23 08:22:49 +02:00
steve-lad 3e9f1b0048
Cleaning up
Simplify structure and fix errors
2021-05-23 08:22:49 +02:00
steve-lad 1646778c57
Switch to PDO model
Switch to PDO model and correct transactions
2021-05-23 08:22:49 +02:00
steve-lad e472d58af6
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-05-23 08:22:48 +02:00
steve-lad f190eeebb4
Update Transactions and fix errors
Reduce quoting level, and fix errors introduced by prior commits
2021-05-23 08:22:48 +02:00
steve-lad 845e8621fb
Further clean ups and annotations
Document changes
2021-05-23 08:22:48 +02:00
steve-lad 022bd0bd9f
Cleaning up
Simplify structure and fix errors
2021-05-23 08:22:48 +02:00
steve-lad 68c5bc418f
Switch to PDO model
Switch to PDO model and correct transactions
2021-05-23 08:22:48 +02:00
steve-lad 825e3df2a1
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-05-23 08:22:48 +02:00
steve-lad 39919d987d
Apply PR 101 2021-05-23 08:22:48 +02:00
steve-lad a0216bc411
Correct type declarations
type declarations must be lowercase or will be treated as local instance names
2021-05-23 08:22:48 +02:00
steve-lad 5c778d788b
Tidy up
Remove unused variables
Close socket if not using
2021-05-23 08:22:47 +02:00
steve-lad 7294f3b3e0
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-05-23 08:22:47 +02:00
steve-lad 6c7a700c0e
Correct Field and add new event classes
add 2 new event classes for SCCPShowDevice

correct translator in ShowSCCPDevice_Response
2021-05-23 08:22:47 +02:00
steve-lad 621a1f1c19
Tidy up exception handling
Simplify handling of AMI lists and trap exceptions
2021-05-23 08:22:47 +02:00
steve-lad d3256f9abe
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-05-23 08:22:47 +02:00
Andrea Diotallevi 23323dfc3b
Fixed recognition of chan-sccp release version 4.3.3 2021-05-23 08:22:47 +02:00
steve-lad 939bf4828f
Updated GenericResponse
Updated generic response handler for table case
2021-05-23 08:22:47 +02:00
steve-lad b4ae9337c5
Update AMI Response
Bring branch up to level of previous Pull which can now be deleted
2021-05-23 08:22:47 +02:00
steve-lad d48c8e5f1a
Cleaned up messages
Improved message readability. Atom removed extraneous white spaces and lines
2021-05-23 08:22:47 +02:00
steve-lad ccee1627aa
Match to previous commit
Add missing comments
2021-05-23 08:22:46 +02:00
steve-lad 3bc30fffb0
Remove extraneous calls
Duplicate calls from page.settings removed
2021-05-23 08:22:46 +02:00
steve-lad 12f84c446e
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-05-23 08:22:46 +02:00
PhantomVl fbf508a35a
-- Bug Fix NTP Config 2021-05-23 08:22:46 +02:00
PhantomVl 25a683d991
Fixes: #88
-- Bug Fix SRST Config
-- A template was added for 7975
2021-05-23 08:22:46 +02:00
PhantomVl 40fda57632
-- Bug Fix SRST Config 2021-05-23 08:22:46 +02:00
PhantomVl 631148502c
-- Bug Fix Delete Empty Key 2021-05-23 08:22:46 +02:00
PhantomVl b4c132e9e7
Fixes: #77
Fixes: #82
Fixes: #85
Fixes: #87
--- Bugfix sip protocol
Special thanks for help Diederik de Groot
2021-05-23 08:22:46 +02:00
PhantomVl 4d540ebc69
--- 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-05-23 08:22:46 +02:00