Allow mac address to be used a variable for provisioning.

This commit is contained in:
FusionPBX 2022-01-28 13:32:28 -07:00 committed by GitHub
parent e0e6a529ec
commit 438c9eb6fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -305,7 +305,8 @@ include "root.php";
elseif (is_array($val) && !is_uuid($val['uuid'])) { $value = $val; }
if (isset($value)) {
$value = str_replace('${domain_name}', $domain_name, $value);
$value = str_replace('{$domain_name}', $domain_name, $value);
$value = str_replace('${mac_address}', $mac, $value);
$value = str_replace('${mac}', $mac, $value);
$provision[$key] = $value;
}
unset($value);