Devices Provisioning Issues

Dear all,

we ‘re trying to set VitalPBX in production, but we have got issue with provisioning grandstream and polycom devices.

Any ideas?

in apache2 error log i have this
AH01071: Got error ‘PHP message: PHP Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /var/lib/vitalpbx/provisioning/provisioning_templates/93524c2345ff0910/index.php on line 45’

Please, someone in VitalPBX could modify this?

from:
function parse_mac_address($string) {
if (preg_match(‘/[0-9a-fA-F]{12}/’,$string,$m)) {
return strtolower($m[0]);
}
return null;
}

to:
function parse_mac_address($string) {
$string = (string) ($string ?? ‘’);
if (preg_match(‘/[0-9a-fA-F]{12}/’,$string,$m)) {
return strtolower($m[0]);
}
return null;
}

$string = (string) ($string ?? ‘’);