Commit Graph
8730 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
Len e7c55ccc1d Duplicate variable yealink_ringtone_url and uuid
Duplicate variable yealink_ringtone_url and uuid 7af991ec-ddb9-4942-a05d-d1acc529fef5
2021-02-18 18:29:33 -05:00
FusionPBX 71b10db150 Merge pull request #5770 from konradSC/patch-90
Add Toll Allow to Call Broadcast
2021-02-17 14:01:49 -07:00
chansizzle 91719cc374 added pin lock vars 2021-02-17 13:14:49 -07:00
konradSC a55b9a6377 Add toll allow 2021-02-17 10:51:42 -05:00
konradSC e4212fa335 Add toll allow 2021-02-17 10:51:11 -05:00
konradSC 7ae966efc6 Add Toll Allow to Broadcast 2021-02-17 10:49:22 -05: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
Andrew Querol b92ed17f17 Fix app_config typo for recordings.
storage_type was never initialized as a setting in the database due to the y counter being reset to 0 after it. This was causing the storage_type setting to not show up in the UI.
2021-02-15 13:53:37 -06:00
FusionPBX 43735a93e9 Update the URL from type to import_type 2021-02-11 15:33:11 -07:00
FusionPBX b5f9db0bd2 Update the URL from type to import_type 2021-02-11 15:32:19 -07:00
agree 74c7f236ff Follow me fix call recording 2021-02-11 12:59:34 -05:00
FusionPBX 449f6ab872 Remove the cdata seems to cause problems rather than help. 2021-02-11 03:35:16 -07:00
chansizzle 691dee7353 yealink cp920 firmware path 2021-02-10 14:43:34 -07:00
FusionPBX 2ca45d4cf2 Add elseif and improve indentation. 2021-02-10 12:38:18 -07:00
FusionPBX 0fbd90899a Merge pull request #5760 from daniel-lucio/patch-183
More DB compatibility
2021-02-10 12:36:17 -07:00
FusionPBX 3b4cc55671 Move the extension settings button. 2021-02-10 00:42:08 -07:00
FusionPBX 5b83dc8ab5 Merge pull request #5761 from greenbea/patch-20
fix comparison operator
2021-02-09 16:53:42 -07:00
FusionPBX c3ee52596e Change the permisison for the settings button. 2021-02-09 14:15:09 -07:00
FusionPBX 34f6d3e068 Add support for extension_settings. 2021-02-09 13:23:59 -07:00
markjcrane 682c632520 Add new extension_settings feature 2021-02-09 13:09:32 -07:00
agree ee1ca8a507 fix comparison operator 2021-02-09 14:18:21 -05:00
Luis Daniel Lucio Quiroz 52c70f6172 Update app_defaults.php 2021-02-09 14:14:53 -05:00
FusionPBX 38a9e1fae0 Add import button if the feature is installed. 2021-02-08 11:52:29 -07:00
FusionPBX af73671c32 Add import button if the feature is installed. 2021-02-08 11:51:48 -07:00
agree 9ad77b64bd Ring group fix missed call alert 2021-02-03 12:18:34 -05:00
agree a39a65d21e ring group release database handle before bridge 2021-02-02 12:58:23 -05:00
FusionPBX 43e2bfc422 sip_h_Diversion on call-forward-all change default to true. 2021-02-01 22:11:15 -07:00
FusionPBX d4ee4c1991 Change from true to optional 2021-02-01 22:00:30 -07:00
FusionPBX 9b36f0015f Merge pull request #5750 from greenbea/patch-14
Fix agent record selected
2021-02-01 19:54:58 -07:00
agree 1205e89796 dialplan xml fix cache delete when editing global dialplans 2021-01-31 16:08:29 -05:00
agree 50d2d49b9e Fix agent record selected
`$agent_record` is a string not a Boolean
2021-01-30 22:40:26 -05:00
agree 5fda5d811f call center agent record 2021-01-29 13:56:04 -05:00
FusionPBX 456aa8dce4 Add outbound caller id name and number to follow me destinations. 2021-01-28 17:34:30 -07:00
FusionPBX 2ea3d8a62a Add more escape functions to the click to call php file. 2021-01-27 22:25:04 -07:00
agree 8e7452e8c7 click to cal 2021-01-27 13:49:01 -05:00
FusionPBX 9213c71b71 Merge pull request #5704 from winsock/patch-1
Do not clobber caller ID names if no number is set
2021-01-26 22:55:39 -07:00
FusionPBX 6c50deee2c Time condition exclude invalid presets with incorrect json syntax to make it more resilient. 2021-01-26 11:53:44 -07:00
FusionPBX 2e4d07b941 Merge pull request #5705 from emaktech/patch-2
Minor french language updates
2021-01-26 08:43:13 -07:00
FusionPBX 54457c8cc1 Merge pull request #5706 from emaktech/patch-3
Minor French update
2021-01-26 08:42:44 -07:00
FusionPBX d6d010e39b Merge pull request #5708 from emaktech/patch-5
French language update
2021-01-26 08:42:03 -07:00
FusionPBX 524bf1e230 Merge pull request #5709 from emaktech/patch-6
French language update
2021-01-26 08:41:46 -07:00
FusionPBX 7954af8e6c Merge pull request #5710 from emaktech/patch-7
French language update
2021-01-26 08:41:16 -07:00
FusionPBX cc322c7650 Merge pull request #5712 from emaktech/patch-9
French language update
2021-01-26 08:40:36 -07:00
FusionPBX 0bc3b4cf57 Merge pull request #5714 from emaktech/patch-11
French language update
2021-01-26 08:38:56 -07:00
FusionPBX 30eb6c942f Merge pull request #5715 from emaktech/patch-12
Micro update to french language
2021-01-26 08:38:22 -07:00
FusionPBX 8638aa6251 Merge pull request #5728 from emaktech/patch-13
FR-CA update
2021-01-26 08:37:48 -07:00
FusionPBX 5ed3989b4e Merge pull request #5736 from emaktech/patch-15
French Translation update
2021-01-26 08:36:46 -07:00
FusionPBX d883aafa21 Merge pull request #5737 from emaktech/patch-16
Update app_languages.php
2021-01-26 08:36:04 -07:00
FusionPBX e029ae2729 Merge pull request #5738 from emaktech/patch-17
Update app_menu.php
2021-01-26 08:35:36 -07:00