Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug Fixes and optimisations as a result of issue 106 #108

Open
wants to merge 39 commits into
base: extension_mobility
Choose a base branch
from

Conversation

steve-lad
Copy link
Contributor

@steve-lad steve-lad commented Feb 24, 2021

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

Issue 106 was due to Asterisk realtime connector errors, which caused exceptions that are resolved by this PR, and extension data in sccp.conf that should not have been there. Now handle correctly even if present.

Switch to PDO model and correct transactions
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.
Switch to PDO model and correct transactions
Simplify structure and fix errors
Reduce quoting level, and fix errors introduced by prior commits
Use bind param to have stricter typing

Fix bug in Sccp-Manager where key and keyword were not the same
Sccpvalues key and keyword must be same or causes hidden DB warnings because of duplicate primary keys after write / read / write
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.
Switch to PDO model and correct transactions
Simplify structure and fix errors
Reduce quoting level, and fix errors introduced by prior commits
Use bind param to have stricter typing

Fix bug in Sccp-Manager where key and keyword were not the same
Standardise some calls and add notes
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
Simplify handling of AMI lists and trap exceptions
add 2 new event classes for SCCPShowDevice

correct translator in ShowSCCPDevice_Response
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
Remove unused variables
Close socket if not using
Before the installer can create sccpsettings, FreePBX instantiates an SCCP_Manager object which requires sccpsettings.
Catch the exception and create the table
type declarations must be lowercase or will be treated as local instance names
As per FreePBX BMO, no longer use global db object
Populate sccpdevmodel if empty
Correct SQL statement
Correct Message Handler
Correct Message interpreter
String quoting was incompatible with PHP 7
Check that labels exist before binding or an exception will occur
Correct PDO statements and implimentation concept
@vaDrn
Copy link

vaDrn commented Jun 6, 2021

after puling this PR I've got additional line on "SCCP info" tab: ConfigsRealTime witch report errors.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants