Device disabled send message to syslog

This commit is contained in:
FusionPBX 2024-07-04 17:58:12 -06:00 committed by GitHub
parent 766aeeefae
commit 1d7bcbe0ee
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -349,6 +349,7 @@
//checks either device enabled
if ($row['device_enabled'] != 'true') {
syslog(LOG_WARNING, '['.$_SERVER['REMOTE_ADDR']."] provision attempted but the device is not enabled for ".escape($device_address));
if ($this->settings->get('provision','debug', 'false') === 'true') {
echo "<br/>device disabled<br/>";
}