- unify the process for preparing the call_block_number
- move the query for user_extensions outside and before the loop
- database used more efficiently
When using session_path, the session must be active and will automatically activate the session. This is a better method so that the session is never started.
Co-authored-by: Tim Fry <tim@fusionpbx.com>
Update comparison checks when testing the database status and
add a unified log message with a more detailed message from the
database when there is a failure
Authored-by: Tim Fry <tim@fusionpbx.com>
In addition to making sure the voicemail directory exists for each voicemail box
Updated the settings class to use the settings object instead of the SESSION.
The call_block_all permission was pulling double duty.
- Changed the code to use call_block_all only for SHOW ALL to call block across all domains.
- Permission call_block_extension will be used instead for the purpose of showing the extension list.
- If someone doesn't call_block_permission then their assigned extensions will be use with each call block item they add.
Initializing the new object for messages prevents a problem where running the message method twice on the same object returns no results.
Running once to get the count and then using that result with paging to get the voicemail messages.
- Allowing passing the database object into the constructor
- Add the database object in the constructor
- replace $_SESSION['domain_uuid'] and $_SESSION['user_uuid'] with $this->domain_uuid and $this->user_uuid
Improved the following
- Prevent empty caller id name and number from blocking calls
- Fixed the call block count so it would increment each time it has blocked a call
Class name requires the transcribe_ prepended before PHP checks to see
if the class actually exists as the engine must have 'transcribe_' in
front of the classes.
Co-authored-by: Tim Fry <tim@fusionpbx.com>
* add database_maintenance function to database_transactions
* update database_maintenance function in database_transactions
New changes in the maintenance application required changes to any
existing functions already created
---------
Co-authored-by: Tim Fry <tim@fusionpbx.com>