Commit graph

745 commits

Author SHA1 Message Date
steve-lad 4b40811d60 Fix issue with uninitialised adv.ini
Change logic to ensure adv.ini is initialised - necessary as used __Construct before sccp_manager installer can initialise.
2021-07-20 15:40:35 +02:00
steve-lad be5890e61f Update extconfigs.class.php 2021-07-20 12:55:23 +02:00
steve-lad 477eb69146 Fix phonepersonalisation
Set expected numeric value for phonepersonalization
WIP fix - adv.ini
2021-07-20 12:53:29 +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 b3b3858965 standardise get ext file modal and add via include
Create standard modal for insertion via include in firmcreate class and adserver view
2021-07-19 08:04:12 +02:00
steve-lad d9fa0ad8bf Update module.xml 2021-07-18 12:51:16 +02:00
steve-lad 3d69090767 Fix finding master file 2021-07-18 12:50:53 +02:00
steve-lad 5c4bbaabba Ignore $adv_ini if not set
Installer and sccp_manager construct - empty variable. Do not use if not set (will be set later)
2021-07-18 12:33:08 +02:00
steve-lad 913cbd14c4 Set default for LangDir
When Sccp_manager construct is called by the installer, this variable is not set. The installer sets it later
2021-07-18 12:23:17 +02:00
steve-lad d7fd77dfe8 Get locales from provisioner
Add progress bar and xhr handler
2021-07-18 11:30:19 +02:00
steve-lad 1b32e0977e Optimise locale (language) management
Optimise function calls
Use array functions instead of loops
findInstalledlangs is currently called by the construct - as this is called frequently, maximise its efficiency
2021-07-15 12:12:07 +02:00
steve-lad a4f8fa4600 Impliment retrieving firmware from Provision_sccp
WIP - need to handle exceptions etc
2021-07-14 17:16:27 +02:00
steve-lad ef77bce159 Add retrieve device files 2021-07-14 13:10:15 +02:00
steve-lad 2ffe4028e6 Add download function
WIP - debug with ringtones
2021-07-12 16:32:57 +02:00
steve-lad 6e26428b1d Update rewrite rules
Add header with credits
Add specific rule for sccp_manager
Add correct fields to parse xml for sccpvalues
Add new option to update files from @dkgroot/provision
2021-07-12 13:50:09 +02:00
steve-lad 2b709c9037 remove index.cnf
Is created by extconfigs with actual server values
2021-07-12 12:36:29 +02:00
steve-lad 651f3adb44 Finalise TFTP Mapping treatment
User no longer can select on or pro: If remapping is enabled and rules are set, then must use pro or phones will not find files
Otherwise is Off (flat directory)
2021-07-12 12:26:56 +02:00
steve-lad 5a184ededb Integrate Provision functionality into Sccp_Manager
Create required directory structure
Check if mapping support is enabled
Check if mapping rules are defined
Change options available based on above
Create index.cnf and sccpManagerRewrite.rules
2021-07-11 16:52:24 +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 bf7556ed81
Merge pull request #27 from chan-sccp/Fix-Issue-#23
Correct rewrite rules
2021-07-10 13:09:23 +02:00
steve-lad ffaab80ee2 Correct rewrite rules
Supplied by and thanks to @vaDrn
2021-07-10 13:08:27 +02:00
steve-lad 30cbe1ba95 Correct output regex
Supplied by and thanks to @vaDrn
2021-07-10 13:05:28 +02:00
steve-lad 2a98d8cfdb Override chan-sccp default context 2021-07-10 12:17:46 +02:00
steve-lad 71fef35ebd Finalise FormShowSysDefs
Remove debug conditionals in Sccp_manager
Pass missing arguments for tftpLang
Remove unused items from sccpgeneral.xml
2021-07-10 10:45:42 +02:00
steve-lad ce115dab8b Create formCreate class
Move anonymous class frpm formShowSysDefs to own class
2021-07-10 09:03:06 +02:00
steve-lad d966bfa303 Minor typo corrections and add defaults button to device add/edit 2021-07-09 14:06:25 +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 11da8356a5 Update Sccp_manager.class.php 2021-07-06 17:20:42 +02:00
steve-lad 945e77f9bc Simplify getCodecs by using array functions 2021-07-06 17:18:17 +02:00
steve-lad f929267910 Provide mechanism to reset codecs to system defaults
Unchecking all codecs will return to chan-sccp defaults
Document this behaviour
Remove various debug code
2021-07-06 16:12:25 +02:00
steve-lad 2e5028f438 Finalise Codecs tab for site defaults
Partially revert changes to sccpvalues keys
Remove obsolete code
Improve help and set as open by default
Move getMyConfig to AjaxHelper as only used there
2021-07-06 15:22:12 +02:00
steve-lad acdf777bcc Clean up xml in cnf files
Indentation was not satisfactory. Improves readability and presentation of cnf files created

Thanks to @dkgroot for proposing this improvement
2021-07-06 12:24:34 +02:00
steve-lad 8b06495938 Update installer to handle chan-sccp parsable fields
chan-sccp has parsable fields where two values are separated by a |.
Parse these fields and their associated values and create two fields.
Remove the unparsed field if it exists.
2021-07-06 11:54:46 +02:00
steve-lad fea6d88aa5 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

Remove Inherit processing

Remove functionality added to hide inherit in default configs - Inherit has been removed from sccpgeneral.xml
2021-07-06 09:31:44 +02:00
steve-lad 5af3c7d2eb
Merge pull request #26 from chan-sccp/Fix-Issue-#25
Fix issue #25
2021-07-06 09:08:14 +02:00
steve-lad 47522b4a25 Update SIP cnf as well 2021-07-06 09:06:10 +02:00
steve-lad 4ad33852fd Revert "Revert "Fix Issue #25""
This reverts commit 6fa4c8626e.
2021-07-06 09:01:26 +02:00
steve-lad 6fa4c8626e Revert "Fix Issue #25"
This reverts commit c1aab666b3.
2021-07-06 08:58:47 +02:00
steve-lad c1aab666b3 Fix Issue #25
Fix incorrect separator and key reference.
2021-07-06 08:58:03 +02:00
steve-lad 44e0846761 Update server.codec.php
Add Recommendation for disallow
2021-07-06 08:30:38 +02:00
steve-lad a6a9850a3c rewrite codec methods to be more compliant with chan-sccp
Update db Fields for defaults
Update save logic
WIP update save defaults Field  in sccpline
2021-07-05 17:08:01 +02:00
steve-lad b15729a340 Change earlyrtp enum
chan-sccp enum is now yes / no and all older values equate to one of these. Help updated in chan-sccp revision: 566c8695
2021-07-05 11:17:03 +02:00
steve-lad a493165153 Insert missing </div> at end of SL type
</div> was commented out
Change sccpdevice type to IE ( using a list suggests changes are legitimate. While true, they are not recommended, so now user must know exactly what to enter.
2021-07-05 11:02:52 +02:00
steve-lad 2809b0796e Simplify List Button Presentation
Standardise method for all SL Types
WIP - unused method needs to be removed after full testing
2021-07-05 10:27:26 +02:00
steve-lad 503f227b98 Convert formShowSysDefs to anonymous class
Allows use of methods per type, which allows clearer compartmentalisation of variables and code.
Improves loading as FreePBX instantiates only once
WIP - create a full class loaded with Sccp_Manager
2021-07-04 16:46:18 +02:00
steve-lad b6dfb51993 Conditional include of Use chan-sccp defaults/Customise button
If there is no chan-sccp default, do not add the button to use chan-sccp default/customise

This adds a large block of html + php enclosed within {}. Add documentation so that this is clear
2021-07-04 09:02:33 +02:00
steve-lad 6ecc981a02 Align more defaults 2021-07-03 16:44:52 +02:00
steve-lad dd9888e55e (re)Align Defaults and Default values with chan-sccp
Ensure all defaults use same vales as chan-sccp (partial revert of earlier changes)
Initialise UsingSysDefaults
Clarify html
2021-07-03 16:29:31 +02:00