Commit Graph

780 Commits

Author SHA1 Message Date
FusionPBX 9d01324da7
Use sip_from_display and sip_from_user when the call originated from the VoIP Provider.
When an inbound call is forwarded the call_direction is set to inbound and then updated to outbound. In this situation we use the sip_from_display and sip_from_user to get the original caller ID instead of the updated caller ID after the call was forwarded.
2022-01-04 17:50:51 -07:00
FusionPBX 1f0af43d83
Use the date c function only if the the epoch is_numeric 2022-01-04 16:54:47 -07:00
Len 02a12591dd
Replace duplicate uuid (#6208)
* Replace duplicate uuid
* Replace duplicate uuid
2021-12-20 11:40:52 -07:00
FusionPBX dd106a6871
Replace event_socket_mkdir with php mkdir. (#6170) 2021-12-02 19:03:55 -07:00
AlexC 2a4550c910
Add dashboard default settings to recent_calls.php (#6138)
* Add dashboard default settings to recent_calls.php

* Update recent_calls.php
2021-11-19 16:32:53 -07:00
AlexC 4b6f42e5c3
Add dashboard default settings to missed_calls.php (#6137)
* Add dashboard default settings to missed_calls.php

* Update missed_calls.php
2021-11-19 16:31:51 -07:00
AlexC 04f301337d
Add new dashboard default settings for cdr charts (#6134) 2021-11-19 16:31:00 -07:00
FusionPBX 2d4c65abee
Simplify missed call handling. 2021-11-19 15:47:54 -07:00
FusionPBX 80cfab92b8
Use answer_stamp and bridge_uuid to deteremine if the call was answered. 2021-11-19 11:11:40 -07:00
AlexC 4600e5f98e
Update missed_calls.php (#6122) 2021-11-12 12:56:11 -07:00
AlexC fd3f3c2d69
Update recent_calls.php (#6121) 2021-11-12 12:55:51 -07:00
AlexC 12260ae24b
Update recent_calls.php (#6117) 2021-11-09 23:23:18 -07:00
AlexC e67e005d08
Update missed_calls.php (#6116) 2021-11-09 23:22:03 -07:00
AlexC cbd0081e3d
Add chart to cdr recent calls (#6111) 2021-11-09 22:27:23 -07:00
AlexC b77e2468d9
Add chart to cdr missed calls (#6110) 2021-11-09 22:27:06 -07:00
markjcrane 032a5aec39 Add a new dashboard 2021-11-09 18:42:14 -07:00
AlexC 42cf0b7068
Replace old chart with Chartjs (#6094) 2021-11-04 10:22:14 -06:00
FusionPBX 4066d868e3
Add flexible search with improved wildcard support. 2021-08-30 19:10:31 -06:00
FusionPBX 287869d71f
Add sip_call_id to the xml cdr SQL select. 2021-07-31 19:28:59 -06:00
FusionPBX 4da962e4e0
Add sip_call_id to the xml cdr import.
The sip_call_id is the Call-ID found in the SIP headers.
2021-07-31 19:25:23 -06:00
FusionPBX 34e3683527
Add sip_call_id to the xml cdr table. 2021-07-31 19:15:18 -06:00
FusionPBX bcd7482e5c
Use elseif instead of a series of if statements. 2021-06-15 13:44:14 -06:00
FusionPBX 6d536ce4d7
Add more to the missed call check
Only count as a missed call if the bridge_uuid has a length.
2021-06-15 12:53:46 -06:00
FusionPBX 3e2ae03295
Count a going to voicemail as a missed call. 2021-06-15 12:20:04 -06:00
markjcrane af3610d986 Add CIDR option to HTTP POST 2021-05-26 20:41:26 -06:00
markjcrane 2750475ab2 Add better logging to XML CDR 2021-05-26 14:29:46 -06:00
FusionPBX 764a46458e
Update xml_cdr_import.php 2021-05-26 10:53:50 -06:00
Andrew Querol b67d55b39c
Replace duplicated v_xml_cdr_import.php with a call to the post method of xml_cdr (#5956)
* Redirect duplicated xml_cdr_import script

This replaces the duplicated code in v_xml_cdr_import.php with xml_cdr_import.php

This also adds a call to `$cdr->post();` in that file to then process the POSTed data from FreeSWITCH
2021-05-26 09:54:08 -06:00
demonspork 7133f35af5
Use epoch times for CDR Imports (#5955)
* Use epoch times for CDR Imports

There has been some discussion of edge cases for CDR Importing time zones/time stamps.

This modification makes the start_stamp, answer_stamp, and end_stamp values use the corresponding _epoch times for import into the v_xml_cdr table to remove any chance of time zone mis-alignment.

* Set Call recording date with Epoch

Use the start_epoch to set the call recording date.
2021-05-26 09:11:09 -06:00
FusionPBX b2e0402478
Get the call_center_queue_uuid from the channel variables. 2021-05-21 13:16:18 -06:00
FusionPBX a7efbe178f
Merge pull request #5952 from greenbea/patch-40
[cdr] Add call stats to cdr details
2021-05-21 09:05:02 -06:00
agree aef22cd47f remove unnecessary line 2021-05-21 01:02:34 -04:00
agree 0fc6915a7a [cdr] Add call stats to cdr details 2021-05-21 00:55:42 -04:00
FusionPBX 21ab598390
Merge pull request #5935 from greenbea/upstream/patch-39
[call_center] export call_center_queue_uuid channel variable to agent legs for cdr import
2021-05-10 12:29:55 -06:00
FusionPBX 10ca93cbc0
Add timestamptz and timezone to the extension summary. 2021-05-10 11:34:47 -06:00
FusionPBX 755f5aaf66
Use the database for formatted date and time. 2021-05-10 11:30:22 -06:00
FusionPBX 49cf078c5c
XML CDR add timestamptz and timezone
- If the server time is set to UTC then the search needs to account for the local time zone.
- Use the database to format the date in the most efficient way.
2021-05-10 11:28:22 -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 884720489f Use the cc_queue to get the call_center_queue_uuid 2021-05-07 22:21:08 -06:00
markjcrane 8bd751f1c9 Use the cc_queue to get the call_center_queue_uuid 2021-05-07 22:04:38 -06:00
markjcrane e09a97f013 Add { and } brackets for each $field 2021-05-07 19:08:11 -06:00
markjcrane 9cfd41d222 Update CDR imports fix syntax 2021-05-07 16:06:03 -06:00
markjcrane cfd70fb18f Use the queue uuid for the cc_queue 2021-05-06 23:23:07 -06:00
markjcrane 014cbd1cd0 Replace data type timestamp with timestamptz 2021-05-05 20:46:53 -06:00
agree 69e892e790 [callcenter] Add ability for callcenter presence
* Freeswitch requires callcenters to have queue_name@domain for presence to work
2021-04-22 18:51:25 -04:00
emaktech a0ab52d369
CDR - Don't Check Filesystem for Recording on Load
I have been debugging slow loading on our CDR pages for the last few days now.

One issue that we have encountered is that currently as the page loads, it checks the filesystem for each file one at a time. In our case, we move recordings to object storage after 1 week, so each time we check for a file it passes api calls which take over 1 second each to return a result. This causes this page to not load at all for us in many cases.

Regardless, this current method is unnecessarily I/O intensive and really page load is probably not the time to be checking for each file one by one.

So this PR is the simplest solution - remove the check entirely. I would contend that the administrator should remove the record_path from the database if the file was removed so this should be acceptable.

This solves this particular issue for us, but would need feedback from others if not checking for files makes sense.
2021-03-03 15:48:17 -05: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 0ef2551698 Exclude cc_side agent legs from missed_call
Excluded cc_side = agent calls from being marked as missed_call = true

Fixed the previous performance issue with adding the cc_side != 'agent' to the SQL and removed its filter from the rendering loop for the xml_cdr.
2021-02-21 18:26:24 -06:00
demonspork b5272984d1 Don't filter LOSE_RACE of already filtering originating_leg_uuid
It is redundant to filter out LOSE_RACE when originating_leg_uuid is also filtered, there is an overlap where every call with LOSE_RACE also has an originating_leg.
2021-02-20 11:51:24 -06:00