fusionpbx/app/xml_cdr
Luis Daniel Lucio Quiroz 9aa88dc537
Make the XML CDR Importer more resilient (#6543)
So I discovered 2 things,

1. If a user adds the default config cdr-field-array with the content of a database field Let's pretend they want to show the xml_cdr_uuid column (for support purposes) - it could be any column, the SQL construction will fail as not Postgresql, Not MariaDB/MySQL allow having a column repeated twice. Adding array_unique() fixes this issue.

2. This one is for developers: If a developer wants to create more columns in the v_xml_cdr table and make them visible in the CDR app, common sense tells to add the default setting cdr-field-array to show it. As the code is now, this will look into the freeswitch variables and overwrite it with NULL. I am adding a condition that verifies if the value has been already assigned, if it is, it won't overwrite it. This allows any developer who may be interested in extending the CDR to simply extend the class without touching it; very handy to keep the original code untouched.
2023-02-08 18:43:25 -07:00
..
resources Make the XML CDR Importer more resilient (#6543) 2023-02-08 18:43:25 -07:00
app_config.php Update default chart colors (#6542) 2023-01-31 11:08:00 -07:00
app_defaults.php Update app_defaults.php 2017-01-13 00:24:29 -07:00
app_languages.php Update XML CDR Extension Summary Queries #5979 (#6365) 2022-05-05 10:43:44 -06:00
app_menu.php remove CDR Statistics from default menu for users (#5347) 2020-07-13 12:46:57 -06:00
download.php Replace root.php 2022-10-10 16:35:14 -06:00
report.php Replace root.php 2022-10-10 16:35:14 -06:00
v_xml_cdr_import.php Replace duplicated v_xml_cdr_import.php with a call to the post method of xml_cdr (#5956) 2021-05-26 09:54:08 -06:00
xml_cdr.php CDR: Update copyright date. 2023-01-16 23:10:11 +00:00
xml_cdr_archive.php Replace root.php 2022-10-10 16:35:14 -06:00
xml_cdr_details.php Replace root.php 2022-10-10 16:35:14 -06:00
xml_cdr_export.php Replace root.php 2022-10-10 16:35:14 -06:00
xml_cdr_extension_summary.php Replace root.php 2022-10-10 16:35:14 -06:00
xml_cdr_import.php Command line or web server both includes can work the same 2022-10-13 16:50:47 -06:00
xml_cdr_inc.php Removing this because it breaks Missed Call results 2022-10-24 15:27:41 -06:00
xml_cdr_search.php Replace root.php 2022-10-10 16:35:14 -06:00
xml_cdr_statistics.php Replace root.php 2022-10-10 16:35:14 -06:00
xml_cdr_statistics_csv.php Replace root.php 2022-10-10 16:35:14 -06:00
xml_cdr_statistics_inc.php Replace root.php 2022-10-10 16:35:14 -06:00