Commit Graph

85 Commits

Author SHA1 Message Date
markjcrane eb5c25aa35 Add insert_date, insert_user, update_date, update_user to all tables 2022-09-18 00:54:37 -06:00
FusionPBX 58d7e402d9
Hide ring group legs by default that were not answered.
Cleans up the Call Detail Records list.
2022-08-05 10:43:40 -06:00
FusionPBX fac8ee8244
Hide Extension Summary Show all by default. (#6318)
* Hide Extension Summary button show all by default. Add new permission xml_cdr_extension_summary_all

Many extensions and CDR records make this a resource very intensive query. Disable by default for all groups.

* Add new permission xml_cdr_extension_summary_all

* Update xml_cdr_extension_summary.php

* Update xml_cdr.php
2022-02-24 01:53:54 -07:00
Len 02a12591dd
Replace duplicate uuid (#6208)
* Replace duplicate uuid
* Replace duplicate uuid
2021-12-20 11:40:52 -07:00
AlexC 04f301337d
Add new dashboard default settings for cdr charts (#6134) 2021-11-19 16:31:00 -07:00
FusionPBX 34e3683527
Add sip_call_id to the xml cdr table. 2021-07-31 19:15:18 -06:00
markjcrane af3610d986 Add CIDR option to HTTP POST 2021-05-26 20:41:26 -06:00
agree d7d7c6c678
remove reference 2021-05-09 16:07:17 -04:00
agree 06062b7fba * export call_center_queue_uuid channel variable to agent legs for cdr import
* add call_center_queue_uuid field to cdr for referenceing the call center queue table (cc_queue is a freeswitch variable for  the queue name)
2021-05-09 15:52:42 -04:00
markjcrane 014cbd1cd0 Replace data type timestamp with timestamptz 2021-05-05 20:46:53 -06:00
demonspork c11589b1c3 Track Voicemail Message Success/Failure in CDR
Track whether or not a message was actually left in the voicemail box. Previously we only knew that voicemail answered, now we know whether the caller left a message.
Callers who didn't leave a message now show up in the "Cancelled" call filter in xml_cdr.php

Bonus: Fixed a bug with the originating_leg_uuid that was breaking extension summary from a previous commit and some other minor bugs/typos.
2021-02-21 21:09:37 -06:00
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
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
agree 5778f71663
Update app_config.php 2021-01-13 13:13:11 -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
fusionate da069651f4 CDR: Grant xml_cdr_domain permission to admin group by default. 2020-12-02 13:37:49 -07:00
FusionPBX b9c6f56554
Add new permission xml_cdr_export. 2020-09-16 15:47:48 -06:00
FusionPBX 99ac39d3e9
Update app_config.php 2020-05-06 20:35:34 -06:00
FusionPBX a872a6c848
Update app_config.php 2020-04-28 12:01:03 -06:00
FusionPBX af3eb82f0f
Update app_config.php 2020-04-17 13:18:07 -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 a8ebcdbd2a Update app_config.php 2020-02-13 19:19:37 -07:00
FusionPBX 8508daf888 Update app_config.php 2019-12-24 14:31:04 -07: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 175a150237 Update app_config.php (#4829) 2019-11-05 11:21:09 -07:00
FusionPBX f07508da8c Update app_config.php 2019-10-22 09:47:58 -06:00
FusionPBX 981c01abe0 Update app_config.php 2019-10-14 11:20:37 -06:00
Nate 8044a851eb CDR: Permissions to control data columns displayed. 2019-10-02 15:41:49 -06:00
Nate 489362a002 CDR: Responsive search form, add permissions to control search field visibility. 2019-10-02 14:01:27 -06:00
FusionPBX 5d2fe09cf8 Update app_config.php 2019-09-28 18:43:32 -06:00
agree 4e69f79311 default setting to remove prefix on cdr page (#4588)
* Update app_config.php

* Update app_config.php

* Update app_config.php
2019-09-14 09:52:34 -06:00
FusionPBX 3102bc9096 Update app_config.php 2019-03-16 04:18:21 -06:00
FusionPBX 57b742cf6f Update app_config.php 2019-03-13 20:14:32 -06:00
FusionPBX 78db3f3c42 Update app_config.php 2019-01-30 08:49:25 -07:00
FusionPBX 77f7d2b970 Update app_config.php 2018-12-15 10:03:02 -07:00
FusionPBX 2fa73d6eee Update app_config.php 2018-12-02 21:59:03 -07:00
FusionPBX 5a709b2d28 Update app_config.php 2018-10-17 21:59:41 -06:00
konradSC c7510768c7 Updates for CDR archives database server (#3036)
* Updates for CDR archives database server

* Add CDR Archive Server

* Updates for CDR archive server

* Updates for CDR Archive server

* Updates for CDR Archive server

* Create xml_cdr_archive.php
2018-04-23 13:24:30 -06:00
FusionPBX 6f825e8bf0 Update app_config.php 2018-03-13 10:30:38 -06:00
FusionPBX 559a391130 Update app_config.php 2018-02-13 10:14:53 -07:00
FusionPBX 2c479c94bb Update app_config.php 2018-02-06 15:55:36 -07:00
FusionPBX 6951888aa7 Update app_config.php 2018-01-31 14:57:45 -07:00
FusionPBX a045893faa Update app_config.php 2018-01-29 15:29:10 -07:00
FusionPBX 07e7238264 Update app_config.php 2017-10-15 11:36:59 -06:00
FusionPBX aa04de36e6 Update app_config.php 2017-09-14 12:52:54 -05:00
FusionPBX 94de699991 Update app_config.php 2017-09-14 12:47:01 -05:00
FusionPBX 6ebf247241 Update app_config.php 2017-06-21 19:10:11 -06:00
Alexey Melnichuk 74454b738f Update CDR Stats application. (#2704)
* Update CDR Stats application.

Fix. Number of calls always calculate only for all domain.
Fix. Number of missed calls ignores any search parameters and use only `inbound` filter.
Fix. Calls duration for days use only domain filter and do not use any other filters.
Add. Limit setting for number of hours to calculate statistic.
Add. When timestamp set then calculate statistic only for this period.

* Fix. Calculate `Calls per minute`
Fix. Prevent divide `0/0` when calculate `ALOC`

* Fix. `Hours` have to be integer type.
2017-06-21 08:20:29 -06:00
Mafoo b98f9cb120 Enhance - app_config.php cleanup for apps (#2633)
make spacing and layout consistent
add all missing language tags
fill missing en-us descriptions
convert to $x$y$z usage for array filling
add a default version number
this is a by hand update
2017-06-03 09:00:20 -06:00
Alexey Melnichuk 9050da03cc Add. Handle `b` legs in CDR. (#2626)
* Add. Handle `b` legs in CDR.

CDR list/statistic by default handle only `a` legs.
So it prevent display wrong result when b-leg turn on.
Add ability to write to db `b` legs only for specific call directions.

To be able see b-legs in CDR need set xml_cdr_b_leg permission.
To add specific call direction to filter need add element to `cdr/b_leg/array` in default/domain settings.

* Add. `b_leg` to defalut settings.
2017-06-02 22:31:20 -06:00