Commit Graph

17577 Commits

Author SHA1 Message Date
demonspork d150f16b9d Fixed "Failed" call status in CDR
Re-implemented the commented out "Failed" call status SQL filter. It was no different than leaving the "Call status" search box empty. Removed the send_refuse restriction.
2021-02-20 11:51:24 -06:00
demonspork 56a318b2f0 Fix TTA display bug
If the TTA is 0 because the call was answered in less than a second (so that the answer_epoch and start_epoch are in the same second), it would not display the TTA at all. This is safe to include 0 because "unanswered" calls are going to have a TTA that is is the negative value of the start time, significantly lower than 0.
2021-02-20 11:51:24 -06:00
demonspork ef38b15cdc Add new missed call rules to HTTP CDR Imports
Add new missed call rules to HTTP CDR Imports. They had only been added to the xml_cdr class used by the file import.
2021-02-20 11:51:24 -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 c7e981dd20
Merge pull request #5774 from chansizzle/patch-397
y000000000000.cfg renamed y000000000078.cfg
2021-02-18 21:05:03 -07:00
FusionPBX db3dbf69fb
Merge pull request #5773 from chansizzle/patch-396
Rename y000000000000.cfg to y000000000078.cfg
2021-02-18 21:04:49 -07:00
FusionPBX 3399a58ef4
Merge pull request #5777 from Len-PGH/patch-186
Duplicate variable yealink_ringtone_url and uuid
2021-02-18 21:04:29 -07:00
FusionPBX 13d97d67e2
Added http.cfg.enabled and httpd.cfg.port. 2021-02-18 17:00:07 -07: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
chansizzle f4948f6886
y000000000000.cfg renamed y000000000078.cfg 2021-02-18 13:35:05 -07:00
chansizzle 39c6b4a3f0
Rename y000000000000.cfg to y000000000078.cfg 2021-02-18 13:34:01 -07:00
FusionPBX 8e92ad53d2
Chang the tls-verify-date so that it defaults to false. 2021-02-17 22:12:42 -07:00
FusionPBX 21e03349dd
Chang the tls-verify-date so that it defaults to false. 2021-02-17 22:12:24 -07:00
FusionPBX 183e7b1bcb
Change tls-verify-date so that it defaults to false. 2021-02-17 22:11:33 -07:00
FusionPBX 9cededce15
Change tls-verify-date to false. 2021-02-17 22:10:51 -07: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
FusionPBX 0dade1d41d
Merge pull request #5771 from chansizzle/patch-395
Added Yealink pin lock settings.
2021-02-17 14:00:31 -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
FusionPBX e690a2f10c
Merge pull request #5769 from demonspork/cdr-statistics-missed-call-link
Fixed "Missed" link and exclude LOSE_RACE from CDR stats.
2021-02-16 22:04:26 -07: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
FusionPBX c6cb47de95
Update {$mac}.cfg 2021-02-16 12:27:20 -07:00
FusionPBX 63a48d61c5
Update {$mac}.cfg 2021-02-16 10:59:45 -07:00
FusionPBX f8b3688094
Merge pull request #5768 from winsock/patch-3
Fix app_config typo for recordings.
2021-02-15 13:28:44 -07: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 3f6ad8af74
Move the parameter for the search. 2021-02-14 20:25:08 -07:00
FusionPBX 4f5722053e
Add user_log_all permission. 2021-02-13 23:39:55 -07:00
FusionPBX e4ad713a11
Add the add method to the user_logs class. 2021-02-13 16:28:12 -07:00
Mark J Crane 5fdcffff7b Update menu for the user_logs 2021-02-13 16:01:00 -07:00
Mark J Crane deac19f646 Add core/user_logs 2021-02-13 15:56:49 -07:00
FusionPBX ddb03b7722
Change the path from /app/user_logs to /core/user_logs. 2021-02-13 15:46:12 -07:00
FusionPBX 14fced5009
Merge pull request #5767 from chansizzle/patch-394
Added many fusion variables to the Yealink CP920 template.
2021-02-12 16:25:56 -07:00
chansizzle 104146df64
Update y000000000000.cfg 2021-02-12 14:00:35 -07:00
FusionPBX 15fa026856
Merge pull request #5766 from chansizzle/patch-393
Update port, MWI, and spelling for Yealink CP920
2021-02-11 17:48:10 -07: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
chansizzle ae168b1e6e
Update {$mac}.cfg 2021-02-11 14:58:24 -07:00
FusionPBX 87b76d0cc5
Merge pull request #5765 from greenbea/patch-21
Follow me fix call recording
2021-02-11 11:52:44 -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
FusionPBX 493b9fd1c0
Merge pull request #5762 from chansizzle/patch-391
improved vmail button, tls, new firmware standards
2021-02-10 14:57:50 -07:00
FusionPBX 909cb426b1
Merge pull request #5763 from chansizzle/patch-392
yealink cp920 firmware path
2021-02-10 14:57:05 -07:00
chansizzle b77025b9ba
Update {$mac}.cfg 2021-02-10 14:51:34 -07:00
chansizzle 691dee7353
yealink cp920 firmware path 2021-02-10 14:43:34 -07:00
chansizzle 33c3cebdcd
Update {$mac}.cfg 2021-02-10 14:04:40 -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