Commit graph

21 commits

Author SHA1 Message Date
stevenA f4aa2eda1c Fix writing settings to sccp.conf
Only write chan-sccp allowed settings to sccp.conf
Clean sccp.conf on install
Move createDefaultSccpConfig to traits so that can access from installer
tighten calls to createDefaultSccpConfig
2021-12-30 09:39:28 +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 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 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 f2d15ebd5e Correct del extension to remove all associated buttons 2021-07-29 16:28:05 +02:00
steve-lad 48a2793886 Add directed_pickup field
Previously shown but not updated
2021-07-29 08:05:33 +02:00
steve-lad 26f750296a Fix various issues with buttons
Add choice of default line on add device
Partially fix buttoncount (will not work if default device is selected)
Correct database save logic for buttons - triggers should be OK but more verification needed
Fix various save issues where defaults not correctly set
Delete default buttons when deleting line to avoid orphans
2021-07-25 13:42:42 +02:00
steve-lad 3475efc2c6 Database request modifications and page improvements
Add device to extensions page - permits to see unassigned  lines and shared lines easily
Reformat status to centred
change 'replace' in sccp class to only 'insert on duplicate key' (UPSET equivalent)
Change request in phoneGrid to left join to show all lines, even unassigned to a device
2021-07-21 11:30:50 +02:00
steve-lad 65f3a6cd37 Fix saving empty num value to db
Replace with NULL
2021-07-20 15:56:44 +02:00
steve-lad 2898f5e3c9 Fix bug codecs storage
codecs were stored as a ',' separated list while chan-sccp expects a ';' separated list
Correct all existing db values when running installer
make sure that disallow is not unset in installer (set to all)
make sure that disallow is not empty
correct help text
2021-07-20 09:32:01 +02:00
steve-lad 248abe6cb7 Clean up and correct missing save settings
Remove unnecessary method from formcreate
Correct indentation in formcreate
Remove debug code in Sccp.class
correct logic for updating TFTP mode
2021-07-10 17:51:55 +02:00
steve-lad ba4dfb2f0d Reset line codec choices to site defaults
If all codecs are unchecked, restores values to site codecs
Remove options that have no input (do not offer user empty lists)
Respect site dndFeature by hiding option if off
2021-07-09 11:18:53 +02:00
steve-lad acb0141d99 Refine Sccp.class
Move help and other defs to sccpgeneral so that have one interface across system
Correct defaults in line with chan-sccp
Standardise db object, and move sql to dbinterface to remove second dependancy
2021-07-08 17:22:50 +02:00
steve-lad 6429b6add9 Finalise Codec Management
Add video codec treatment
Correct missing defaults
Simplify defaults in Sccp.class
2021-07-08 08:56:42 +02:00
steve-lad 34a7f6a163 Remove hidden tab in SQL 2021-06-20 12:08:37 +02:00
steve-lad be8aa5cd92 Initialise Defaults in Driver
Add Constructor to get and set line_defaults
Add defaults to SCCP tab
2021-06-20 11:53:24 +02:00
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
Renamed from conf/Sccp.class.php.v433 (Browse further)