Add the user_agent field.

This commit is contained in:
FusionPBX 2022-08-01 23:38:03 -06:00 committed by GitHub
parent 79b5f70cdf
commit 7f494e3baf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -222,6 +222,7 @@
$array['event_guard_logs'][0]['filter'] = $filter; $array['event_guard_logs'][0]['filter'] = $filter;
$array['event_guard_logs'][0]['ip_address'] = $ip_address; $array['event_guard_logs'][0]['ip_address'] = $ip_address;
$array['event_guard_logs'][0]['extension'] = $array['to-user'].'@'.$array['to-host']; $array['event_guard_logs'][0]['extension'] = $array['to-user'].'@'.$array['to-host'];
$array['event_guard_logs'][0]['user_agent'] = $array['user-agent'];
$array['event_guard_logs'][0]['log_status'] = 'blocked'; $array['event_guard_logs'][0]['log_status'] = 'blocked';
$p = new permissions; $p = new permissions;
$p->add('event_guard_log_add', 'temp'); $p->add('event_guard_log_add', 'temp');
@ -414,10 +415,10 @@
print_r($row); print_r($row);
echo $ip_address."\n"; echo $ip_address."\n";
} }
//set the allowed to true //set the allowed to true
$allowed = true; $allowed = true;
//exit the loop //exit the loop
break; break;
} }