Commit Graph

825 Commits

Author SHA1 Message Date
demonspork 1a1edf1195 Improved Missed Call accuracy, cdr statistics, and hide duplicated CDRs from Enterprise Ring Groups
Changes
--------
  - Improve CDR Import Logic so that missed_call column is more accurate to the "missed" status. It would previously mark unanswered outbound calls as "missed". These are their own category of call.
  - Don't mark the CDRs of the "legs" of an Enterprise Ring Group call as missed, only the originating_leg will be marked (one missed call per call) - We could also just "skip" importing these call legs. Simultaneous ring groups don't have these duplicated CDRs for every ringing phone. The "Skip" approach might make most of the rest of this work irrelevant.
  - Create `originating_leg_uuid` column in v_xml_cdr and import it into the database during CDR imports so it is available for filtering Enterprise Ring Group calls out of CDRs and reports.
  - Move logic that hides the agent leg of CC calls, LOSE_RACE calls, and the Enterprise Leg hiding code from xml_cdr.php into xml_cdr_inc.php into the SQL query WHERE clause so the CDR page looks more consistent. The logic is the same, but these calls are now excluded from the query result entirely instead of having to "skip" rendering them in the list on the xml_cdr.php page.
  - Improved CDR statistics page to use the missed_call variable instead of relying upon billsec and answer_stamp/answer_epoch. Added the same logic as the xml_cdr pages to the query so it excludes enterprise ring group call legs.
  - Laid the query groundwork in xml_cdr_statistics to report on Average TTA (No UI changes yet to include that statistic)

Retroactive Changes
---------------------
There are a few changes going back in time to bring everything in line with this better reporting accuracy:
  - If you want the populated the `originating_leg_uuid column` in `v_xml_cdr`, it will rely upon having the `json` column and not having deleted the data from it like I know some people do for space saving.
  - If you don't have the json column,  you are mostly out of luck for hiding the duplicate legs of Enterprise ring group calls. It might be possible, but it isn't going to be easy.
  - On Newer Versions of postgres, this works:
```
UPDATE v_xml_cdr SET originating_leg_uuid = (json->'variables'->>'originating_leg_uuid')::uuid WHERE json->'variables'->>'originating_leg_uuid' IS NOT NULL;
```
  - For some reason on postgres 9.4, I had to UPDATE every single record because I couldn't get it to allow the json syntax properly after the WHERE. This is fine, it doesn't change the end result it just means it has to run the UPDATE on every record, which will take a while
```
UPDATE v_xml_cdr SET originating_leg_uuid = (json->'variables'->>'originating_leg_uuid')::uuid;
```
  - To remove the `missed_call = true` on all your previous outbound records so that they don't show up when you filter on missed (outbound unanswered calls can be accurately listed with TTA max 0 and direction outbound)
```
UPDATE v_xml_cdr SET missed_call = false WHERE direction = 'outbound' AND missed_call = true;
```
2021-02-20 11:51:24 -06:00
demonspork 202bc7363e Fixed "Missed" link and exclude LOSE_RACE from CDR stats
Simple change to exclude lose_race and fix a URL change for the xml_cdr page.
2021-02-16 21:21:59 -06:00
agree ee1ca8a507
fix comparison operator 2021-02-09 14:18:21 -05:00
FusionPBX 0bc3b4cf57
Merge pull request #5714 from emaktech/patch-11
French language update
2021-01-26 08:38:56 -07:00
agree 08f5c1631c
Add missing variable 2021-01-23 23:53:36 -05:00
agree 9c9507e2e3
Fix xml_cdr_details fix application log
When there's a single app in the app log it's saved as an single object in the json not as an array of objects
2021-01-23 23:47:53 -05:00
FusionPBX 246ffb3e12
Add a permission check for xml_cdr_export_csv and xml_cdr_export_pdf to the CDR export. 2021-01-18 00:00:18 -07:00
FusionPBX 1b2812976d
Add xml_cdr_export_csv and xml_cdr_export_pdf permissions to app_config.php. 2021-01-17 23:56:45 -07:00
FusionPBX 9788b7b99f
Add xml_cdr_export_csv and xml_cdr_export_pdf permission checks. 2021-01-17 23:55:23 -07:00
agree 5778f71663
Update app_config.php 2021-01-13 13:13:11 -05:00
agree 33b206c6a7
Update xml_cdr.php 2021-01-13 13:12:23 -05:00
Greenbea 3a01537487 CDR add permision to hide call center agent legs
Author:    agree <ahrongreenberg@gmail.com>
2021-01-12 16:55:27 -05:00
emaktech d61388b3ee
Update app_languages.php
French language update
2021-01-06 16:20:26 -05:00
fusionate e8e67a6af7 CDR: Verify is array before checking size. 2020-12-28 14:23:00 -07:00
emaktech cc5eba5699
Revert "Order by start_epoch to Speed Up Query Execution" 2020-12-23 23:52:15 -05:00
FusionPBX fa835103e3
Use isset instead of strlen. 2020-12-21 11:13:55 -07:00
agree 60ed198a2e
CDR Import fix missing sql parameter 2020-12-15 12:42:47 -05:00
FusionPBX c314f4352a
Minor change add a little better description. 2020-12-10 20:20:51 -07:00
FusionPBX d5016a107b
Delete xml_cdr_import_update.php 2020-12-10 20:19:54 -07:00
FusionPBX 53cbf8c9b4
Fix a situation where call recording was not showing up in Call Detail Records.
Make sure the record_path is set to the default path if that value doesn't exist in the xml.
2020-12-10 20:03:53 -07:00
emaktech c97d9e7022
Order by start_epoch to Speed Up Query Execution
In some cases, this seems to speed up xml_cdr loading times by ~10x.

It appears one big cause of this is the final ORDER_BY statements are very slow in PostgreSQL for timestamp fields. Ordering by start_epoch field improves query execution time in a dramatic way and should result in the same ordering.
2020-12-07 15:56:26 -05:00
fusionate da069651f4 CDR: Grant xml_cdr_domain permission to admin group by default. 2020-12-02 13:37:49 -07:00
FusionPBX 08de8d1f81
Remove code that caused an error. 2020-10-07 13:48:17 -06:00
Nate 41501eee61 CDR: Mitigate warnings if no extensions assigned to user. 2020-09-29 13:56:10 -06:00
agree aabd4059be
cdr add call flow summary (#5454) 2020-09-23 10:29:13 -06:00
agree 9fc63d2643
Fix call direction (#5456) 2020-09-23 10:27:02 -06:00
agree ca313c9d34
Update xml_cdr_details.php (#5455) 2020-09-23 10:25:55 -06:00
agree 4670a50fb0
xml cdr details format duration (#5457) 2020-09-18 12:34:22 -06:00
FusionPBX 95d3684cd1
Make the export page use the new xml_cdr_export permission. 2020-09-16 15:48:43 -06:00
FusionPBX b9c6f56554
Add new permission xml_cdr_export. 2020-09-16 15:47:48 -06:00
FusionPBX 89bc913d97
Add permission_exists xml_cdr_export 2020-09-16 15:47:12 -06:00
FusionPBX 4b413ee745
Comment out the json results so that the code uses less RAM. 2020-09-16 15:26:50 -06:00
FusionPBX 1abd1f1670
Change prefix from tmp_ to start_ as the variable is based on the start date. 2020-08-11 10:39:27 -06:00
agree e2498a81de
fix extension summary date selection (#5358) 2020-07-16 09:54:10 -06:00
agree b0b788427e
remove CDR Statistics from default menu for users (#5347)
* Remove CDR stattistics from user group menu

users don't have CDR statistics vier permission no need to have it in the menu

* remove status from user group menu

No need to have it in the default menu for the user group
2020-07-13 12:46:57 -06:00
FusionPBX 0d2e62bc9b
Add answered to the extension summary 2020-07-07 22:13:28 -06:00
FusionPBX fa7bb2a781
Add direction inbound for call center calls and update missed_calls. 2020-07-02 18:02:19 -06:00
FusionPBX e1f428db59
Add direction inbound for call center calls and update missed_calls. 2020-07-02 18:01:59 -06:00
FusionPBX 2d5745c283
Adjust the key string to match the value. 2020-07-02 16:48:07 -06:00
FusionPBX 0a3d809556
Add cc values to the altnernate import. 2020-07-02 16:27:54 -06:00
FusionPBX 87a7073889
If you don't have xml_cdr_lose_race permission then hide the call. 2020-06-01 16:13:40 -06:00
FusionPBX d53bf56ee6
Remove is_array on extension_uuids 2020-05-14 20:48:57 -06:00
FusionPBX 99ac39d3e9
Update app_config.php 2020-05-06 20:35:34 -06:00
FusionPBX 8aa4277449
Update v_xml_cdr_import.php 2020-05-06 14:23:17 -06:00
FusionPBX 71e861a68c
Update v_xml_cdr_import.php 2020-05-06 14:19:28 -06:00
FusionPBX 314a217d56
Update xml_cdr.php 2020-05-05 21:32:33 -06:00
FusionPBX d53c90d1dd
Update v_xml_cdr_import.php 2020-04-28 16:15:18 -06:00
FusionPBX b261c7e6d5
Update xml_cdr.php 2020-04-28 16:11:06 -06:00
FusionPBX a872a6c848
Update app_config.php 2020-04-28 12:01:03 -06:00
FusionPBX 88846e822c
Update xml_cdr.php 2020-04-28 12:00:07 -06:00
konradSC ef116cedd9
Specify table for Accountcode Search (#5243)
I had to add "c." in order for accountcode CDR searches to work under Advanced CDR Search. 

I suspect there may be more that require this, but I haven't checked every field under advanced search.
2020-04-24 10:07:35 -06:00
FusionPBX af3eb82f0f
Update app_config.php 2020-04-17 13:18:07 -06:00
FusionPBX 4c34f3d4be
Update xml_cdr.php 2020-04-17 12:53:50 -06:00
FusionPBX f18e578892
Update v_xml_cdr_import.php 2020-04-17 12:51:49 -06:00
FusionPBX 0028e9cf50
Update v_xml_cdr_import.php 2020-04-17 12:33:57 -06:00
FusionPBX 81f665c65a
Update xml_cdr.php 2020-04-17 12:06:50 -06:00
FusionPBX 311e647783
Update xml_cdr.php 2020-04-06 16:11:31 -06:00
Nate 365e20926f Safari Audio Support: Call Recordings, MOH, VM Greetings & Messages and CDR audio files. 2020-03-30 20:08:45 -06:00
Luis Daniel Lucio Quiroz 4af2120e42
[4.5] REQUESTED_CHAN_UNAVAIL option in xml cdr (#5216)
just another option for searching calls
2020-03-27 15:36:08 -06:00
Nate d7824ab5a8 CDR: Modal integration. 2020-03-26 16:36:36 -06:00
racitup a1699f6fa6 Add en-gb fusionpbx language (#5192)
* Create en-gb language by copying en-us

* Add en-gb to app_configs

* Add en-gb to app_menus

* Language copy utility

* Fix missing quote mark

* Delete cp_lang.py

Co-authored-by: FusionPBX <markjcrane@gmail.com>
2020-03-20 14:47:13 -06:00
FusionPBX c1b80ade27 Update xml_cdr.php 2020-03-10 10:43:58 -06:00
FusionPBX 4b2a918193 Update v_xml_cdr_import.php 2020-03-10 10:41:38 -06:00
FusionPBX 827e9d7faa Update xml_cdr.php 2020-03-05 16:24:20 -07:00
Nate e8494facee Multiple: Add IDs to form tags, remove empty action attributes. 2020-03-05 10:02:25 -07:00
Nate 029c7174b4 Multiple - Add IDs to common/default action buttons. 2020-03-05 00:05:45 -07:00
FusionPBX 4bc1512fec Update xml_cdr.php 2020-02-19 12:56:16 -07:00
FusionPBX a8ebcdbd2a Update app_config.php 2020-02-13 19:19:37 -07:00
Nate 4d0a65e970 CDR: Remove deprecated delete script. 2020-02-12 14:14:52 -07:00
Nate 82367a5137 CDR: Remove domain_uuid from delete() method. 2020-02-12 14:14:16 -07:00
Nate dbdfafcfd8 CDR & Archive: Merge and simplify, integrating some features of CDR into Archive. 2020-02-11 10:44:00 -07:00
Nate 6297cf191e CDR Extension Summary: List and button updates, use css grid on search form. 2020-02-07 08:45:02 -07:00
Nate e0ea637184 CDR: Remove duplicate hidden input for show all. 2020-02-07 08:41:13 -07:00
Nate 8ce40ea768 CDR, Advanced Search, Statistics - Button updates, minor adjustments. 2020-02-07 07:44:08 -07:00
FusionPBX fffbb14455 Update xml_cdr_extension_summary.php 2020-02-02 15:37:50 -07:00
FusionPBX a2b135809f Update xml_cdr.php 2020-02-02 12:50:34 -07:00
FusionPBX 087ef91a8c Update xml_cdr_extension_summary.php 2020-02-02 12:48:54 -07:00
FusionPBX c00563efd8 Update xml_cdr.php 2020-01-31 21:28:29 -07:00
FusionPBX 3f019e7855 Update xml_cdr.php 2020-01-31 21:09:41 -07:00
FusionPBX 729c06cb25 Update xml_cdr.php 2020-01-31 17:17:55 -07:00
FusionPBX 00656120ef Update v_xml_cdr_import.php 2020-01-31 16:36:03 -07:00
Andy-Seattle cfd70dcf4e E.164 Inbound caller ID fix (#5138)
When an inbound call has E.164 caller ID format (eg Skyetel), the + is being stripped from the caller_id_number variable before storing in the v_xml_cdr database table. If we then try and block this CDR in the Call Block application it adds the number BUT without the + so it never matches future calls.
This proposed change ensures that the + is not stripped for INBOUND calls when written to v_xml_cdr and therefore when blocking the CDR it works correctly (i.e. it includes the + which then matches the call next time and blocks it).
2020-01-31 15:37:46 -07:00
FusionPBX 492e88592f Update xml_cdr.php 2020-01-28 18:43:04 -07:00
FusionPBX 70e3865d42 Update xml_cdr_export.php 2020-01-28 17:28:01 -07:00
FusionPBX 1076c99d63 Update xml_cdr_inc.php 2020-01-28 17:27:23 -07:00
Nate 3ca46887d9 CDR: Only allow user to select assigned extensions when xml_cdr_search_extensions permission is assigned but xml_cdr_domain permission not assigned. 2020-01-23 07:05:01 -07:00
Nate 983ec065b1 CDR: Add window titles. 2020-01-06 10:56:27 -07:00
chansizzle 3f1b5c0d9c Update xml_cdr_details.php (#4992) 2019-12-28 13:37:22 -07:00
chansizzle 499f6474a5 Update xml_cdr_details.php (#4944)
Escaping wordwrap to fix double escaping characters
2019-12-28 12:30:38 -07:00
FusionPBX ad65f556cd Update xml_cdr_statistics_csv.php 2019-12-24 14:36:31 -07:00
FusionPBX cae9b1708c Update xml_cdr_statistics_inc.php 2019-12-24 14:34:26 -07:00
FusionPBX 1ae94fd51e Update xml_cdr_statistics.php 2019-12-24 14:33:04 -07:00
FusionPBX 8508daf888 Update app_config.php 2019-12-24 14:31:04 -07:00
FusionPBX bd593532ad Update xml_cdr.php 2019-12-24 14:29:17 -07:00
FusionPBX 3ef8a0ae12 Update v_xml_cdr_import.php 2019-12-23 11:23:53 -07:00
FusionPBX 2185780bef Update xml_cdr.php 2019-12-23 11:20:43 -07:00
FusionPBX 71479d69fc Update v_xml_cdr_import.php 2019-12-23 11:17:34 -07:00
Nate 07d6fe37a1 Functions: th_order_by mods. App Languages: Misc mods. 2019-12-12 16:35:39 -07:00
Nate aa593c03fc List Views: Minor adjustments to code. 2019-11-30 14:18:00 -07:00
Nate bfb17507f1 List Views: Simplify action handling. 2019-11-30 11:12:41 -07:00
Nate 2a0a1d1e12 Email Logs, CDR: Minor adjustments. 2019-11-27 11:00:16 -07:00
Nate b7ce028e99 Update xml_cdr_search.php 2019-11-20 10:19:44 -05:00
noci2012 5ee2ac908b Additional nl-nl translations (#4875)
* add nl-nl items

* Update app_config.php

* add nl-nl items

* Update app_languages.php

* Update app_menu.php

* Update app_languages.php

* Update app_menu.php

* Fix typos inn nl-nl

* Add nl-nl items

* dd nl-nl items.

* Add nl-nl items.

* Add nl-nl items (call-flows)

* Add nl-nl items

* Add nl-nl items

* dd nl-nl items (calls)

* Add nl-nl items

* Add nl-nl items (contacts)

* Add nl-nl items (vars)

* Add nl-nl items (voicemails)

* Add nl-nl items (xml_cdr)
2019-11-19 11:15:42 -07:00
chansizzle 2bc43685b9 Update xml_cdr_inc.php (#4876) 2019-11-19 11:11:35 -07:00
chansizzle 1ac40747a3 Update xml_cdr_statistics_inc.php (#4877)
* Update xml_cdr_statistics_inc.php

* Update xml_cdr_statistics_inc.php
2019-11-19 11:10:50 -07:00
Nate 02b35a7a99 Device: List view updates. 2019-11-07 09:00:29 -07:00
chansizzle f7a2fba9c2 Update xml_cdr.php (#4831) 2019-11-05 11:21:38 -07:00
chansizzle 8f23d4d5dd Update xml_cdr_archive.php (#4832) 2019-11-05 11:21:23 -07:00
chansizzle 175a150237 Update app_config.php (#4829) 2019-11-05 11:21:09 -07:00
agree 6ebd3d5796 Update xml_cdr.php (#4816) 2019-10-31 23:42:29 -06:00
Nate e8c77ddbef CDR: Minor adjustment to columns. 2019-10-26 09:24:09 -06:00
Nate 94994315fa CDR: Center Date and Time column headings. 2019-10-25 19:00:19 -06:00
Nate 97538888a0 CDR: Center Date/Time column headings. 2019-10-25 18:55:50 -06:00
Nate 756367bfa5 CDR adjustments. 2019-10-24 20:18:20 -06:00
Nate ff70a88efa CDR adjustment 2019-10-24 18:29:54 -06:00
Nate 8dd1e426f0 Misc CDR/other adjustments. 2019-10-24 18:27:48 -06:00
Nate f0347b5214 Action Bar mods. 2019-10-24 16:31:14 -06:00
Nate 6879195ae2 Action Bar mods. 2019-10-24 16:28:09 -06:00
Nate ea536d2f6e Button class updates, logic updates to other files. 2019-10-23 21:19:37 -06:00
FusionPBX 679c78d269 Update xml_cdr.php 2019-10-22 10:06:24 -06:00
FusionPBX 31180e7afb Update xml_cdr.php 2019-10-22 09:53:36 -06:00
FusionPBX f07508da8c Update app_config.php 2019-10-22 09:47:58 -06:00
Nate b3acbdc7e4 Update theme/template. 2019-10-22 01:57:20 -06:00
Nate 0ebddaf2fa CDR: List view updates. 2019-10-22 01:43:55 -06:00
FusionPBX 981c01abe0 Update app_config.php 2019-10-14 11:20:37 -06:00
FusionPBX dd7279b6e4 Update xml_cdr.php 2019-10-07 23:49:24 -06:00
FusionPBX 11f80ba1bf Update v_xml_cdr_import.php 2019-10-07 23:43:02 -06:00
FusionPBX 1c0368cb5f Update v_xml_cdr_import.php 2019-10-07 23:37:53 -06:00
FusionPBX a9e60d0fb8 Update xml_cdr.php 2019-10-07 15:44:05 -06:00
FusionPBX 64158012a2 Update xml_cdr.php 2019-10-07 15:32:23 -06:00
FusionPBX 05dc333ef6 Update xml_cdr.php 2019-10-07 15:28:05 -06:00
FusionPBX cc6a5758fb Update v_xml_cdr_import.php 2019-10-07 14:55:20 -06:00
FusionPBX a1164b4999 Update v_xml_cdr_import.php 2019-10-07 13:17:21 -06:00
FusionPBX 1477526fd1 Update xml_cdr.php 2019-10-04 13:16:21 -06:00
Nate b480ffb9c3 Update xml_cdr.php 2019-10-02 16:00:01 -06:00
Nate 8044a851eb CDR: Permissions to control data columns displayed. 2019-10-02 15:41:49 -06:00
Nate c88355c2fb CDR: Update permissions on CDR Archive. 2019-10-02 14:17:34 -06:00
Nate 489362a002 CDR: Responsive search form, add permissions to control search field visibility. 2019-10-02 14:01:27 -06:00
Nate eec1699e01 CDR: Recording filter search support. 2019-09-28 19:47:00 -06:00
Nate 30a89c3897 CDR: Advanced Search Duration min/max search support. 2019-09-28 19:35:23 -06:00
Nate 90c7afb442 CDR: TTA min/max search support. 2019-09-28 19:30:07 -06:00
Nate 407230e580 CDR: Duration min/max search support. 2019-09-28 19:21:55 -06:00
Nate bb97f65b3f CDR: Additional search fields. 2019-09-28 19:13:01 -06:00
FusionPBX 52a5cf12fb Update xml_cdr_inc.php 2019-09-28 18:47:53 -06:00
FusionPBX 848d18ef5b Update xml_cdr_search.php 2019-09-28 18:46:28 -06:00
FusionPBX 5d2fe09cf8 Update app_config.php 2019-09-28 18:43:32 -06:00
FusionPBX 38686dd5ab Update xml_cdr_inc.php 2019-09-28 18:42:13 -06:00
Nate 46a6461630 CDR: Move column sort to select box in search form. 2019-09-26 08:27:13 -06:00
chansizzle d8a98c6709 Update xml_cdr.php (#4647)
removes potential for "Warning: sizeof(): Parameter must be an array or an object that implements Countable"
2019-09-24 13:38:19 -06:00
chansizzle e36acf1dcd Update xml_cdr_inc.php (#4646)
removes potential "Warning: Use of undefined constant"
2019-09-24 13:38:07 -06:00