Commit Graph
44 Commits
Author SHA1 Message Date
Andrew Querol 832549a32e Fix dashboard widget for agent status management (#5993)
* Fix dashboard widget for agent status management

This needed to be updated for the ext@domain call center naming change.

* Add support for On-Break and remove user_status and agent_status syncing
2021-07-29 23:47:09 -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
Andrew Querol c5af288caf Revert "Revert "Improve the valet_park_auto dialplan to support auto out and whole lot BLF monitoring""
This reverts commit e853db42
2021-04-27 12:44:33 -05:00
Andrew Querol 65cdf03be3 Remove unused info action 2021-03-25 09:17:16 -05:00
Andrew Querol 972934e780 Update the main valet_park dialplan to match the improvements made to the auto dialplan.
Parking lots are no longer directly prefixed with *. But for backwards compatibility can be called that way still.

Parking lot name changed from `park` to `5900` to allow monitoring the whole parking lot with a BLF if desired.

Fix regex from matching 5900 to allow this dialplan to work with the valet_park_auto if enabled.
2021-03-25 09:17:16 -05:00
Andrew Querol df7f4db55d Improve the valet_park auto dialplan by adding support for auto out and support for whole lot BLF monitoring.
If the Referred-By header is set call the normal `auto in` code. If it isn't set that means someone called it directly, call `auto out` ato attempt to pop the calls in the lot in FIFO order.

This also changes the parking lot name from `park` to `5900` this allows phones to monitor `park+5900` to get the status of the whole parking lot. Before you would have to monitor `park+park` to get this functionality.
2021-03-25 09:17:01 -05:00
Andrew Querol 42b421e646 Add a setting to control the grouping behavior if people want it back the old way. 2021-03-25 09:16:12 -05:00
Andrew Querol c16a4f60b5 Group extensions by their call_group when viewing all extensions. 2021-03-25 09:16:12 -05:00
Andrew Querol 92bbb77561 Check for duplicate MAC addresses in the device import 2021-03-25 09:15:46 -05:00
Andrew Querol fc9b8b5246 Add in phonebook 2021-03-23 15:17:42 -05:00
Andrew Querol a36e127aca Add in hide BLF remote status
This was added recently by @demonspork
2021-03-23 15:17:05 -05:00
Andrew Querol 9a7e6d0a64 Add missing ringtone variables
These were added recently by @demonspork
2021-03-23 15:17:05 -05:00
Andrew Querol 228b3d0b31 Fix typo with destination ID for the new destination buttons 2021-03-23 00:42:33 -05:00
Andrew Querol 4075a12a74 Do not use the null coalescing operator to retain pre PHP 7 support. 2021-03-23 00:07:35 -05:00
Andrew Querol ee30b59909 Switch to window.open to '_blank' to prevent accidental navigation that looses changes. 2021-03-22 23:44:33 -05:00
Andrew Querol 59dbcd02a7 Check if there is an ID before redirecting 2021-03-22 23:37:11 -05:00
Andrew Querol 14a8c10849 Fix voicemails to support the new UUID linking 2021-03-22 23:34:51 -05:00
Andrew Querol f1fbbad7ab Recordings are stored in 'uuid' not 'recording_uuid' 2021-03-22 23:25:12 -05:00
Andrew Querol 152955625c Initial attempt at allowing the destination button button
to dynamically change

This sets the UUID as the ID in the options list. The we use the javascript onclick listener to get the id(uuid) of the selected option and open the link to the edit page.
2021-03-22 23:13:39 -05:00
Andrew Querol 44ae3e102e GRP261x configuration using the new easier to read XML format.
Update the GRP v2 dialplan to match recent changes by @demonspork

Also disable internal feature keys like the other dialplans.
2021-03-19 13:08:07 -05:00
Andrew Querol 7217da15f0 Update the feature event LUA code to match the fix in PHP
This renames `get_profile` to `get_profiles` which either returns nil for no profiles or a array of unique profiles.

Then each function that used to take the single sip_profile was updated to take this array and send events to each profile the user is part of.
2021-03-18 09:31:22 -05:00
Andrew Querol 7d57cef6ac Fix device provisioning and event notification for multiple registrations across different SIP profiles. 2021-03-18 09:31:22 -05:00
Andrew Querol 78276cb258 Only send MWI notifications for enabled voicemail boxes. 2021-03-11 11:55:02 -06:00
Andrew Querol 2d175db556 Fix bulk device imports with TFTP path enabled
If you bulk imported devices and had the TFTP path set the configuration files would not be written out to the TFTP path.
2021-03-11 10:36:16 -06:00
Andrew Querol 57c9bc7460 Update provision write() to match render()
This will ensure that anyone using TFTP still can use array template variables
2021-03-11 10:25:22 -06:00
Andrew Querol 5a9b734a51 Update recording edit to not pull base64 data
This is less of an improvement than the other changes I proposed since it's only doing it for one file. But it still doesn't need to pull that recordings base64 data here if it has it.
2021-03-09 16:36:52 -06:00
Andrew Querol 67eecb5485 Do not load base64 data into MOH edit
This will fix unnecessary memory usage/latency in this application when dealing with base64 recordings.
2021-03-09 16:32:35 -06:00
Andrew Querol d48d98893f Update switch_recordings.php
recording_base64 was pulled from the database and never used. Remove it to optimise base64 handling.
2021-03-09 16:23:49 -06:00
Andrew Querol ea0823ea4d Do not load base64 data into phrase edit.
This will fix unnecessary memory usage/latency in this application when dealing with base64 recordings.
2021-03-09 16:15:01 -06:00
Andrew Querol c7a35cc1ad Fix device MAC address imports not normalizing.
If it is not normalized you can get a not found error when provisioning since that is checking the database with a normalized MAC address
2021-03-04 17:33:25 -06:00
Andrew Querol 124f32d989 Remove footer from call center dashboard widget.
This should not have been in here, causes the footer to display outside of the bounds of where it should be.
2021-01-14 10:11:11 -06:00
Andrew Querol 492cbbde14 Re-add permission check per button toggle button. 2020-12-28 22:17:05 -06:00
Andrew Querol d7c7f4f1a5 Do not collapse toggle buttons so they do not loose meaning on small screens/mobile devices. 2020-12-28 21:53:04 -06:00
Andrew Querol 4807e0b570 Remove the toggle dropdown in favor of three separate toggle buttons 2020-12-28 21:32:19 -06:00
Andrew Querol 88be4e0094 Fix user status setting. 2020-12-28 19:45:05 -06:00
Andrew Querol f1349fac12 Allow both park+x and park+*x prefixes in the Grandstream dialplan.
See #5606 for context
2020-11-20 19:17:43 -06:00
Andrew Querol ef91055b5c Fix the names of the parking lot dialplan with the auto-in support.
This now matches the normal default valet_park dialplan with naming the lots with * prefixed.
2020-11-20 18:55:01 -06:00
Andrew Querol cfc44b4d59 Ensure we setup sip proxies even if the user doesn't have permission to customize them when adding.
Also ensures the primary and secondary server address are set to defaults if the permission does not exist.
2020-11-17 21:40:49 -06:00
Andrew Querol 658bc3835e Fix XML validation issues with the templates. 2020-11-16 21:20:15 -06:00
Andrew Querol cbd8a542aa Fix issue where accounts would not be removed. 2020-11-10 12:34:57 -06:00
Andrew Querol c959b8cd10 Add in the new default settings and enable WiFi management. 2020-11-05 12:02:33 -06:00
Andrew Querol cdab2a752c Fix the whitespace inconsistency 2020-11-05 09:43:51 -06:00
Andrew Querol d2917b57a4 Enable MPK support 2020-11-04 13:06:36 -06:00
Andrew Querol 6af292e2ba Improve the GXV3370 template to handle multiple SIP lines and add missing settings 2020-11-04 12:06:42 -06:00