Update device.php (#6570)

"cisco spa" check must be before "cisco" otherwise "cisco spa" is ignored
This commit is contained in:
televoice_pl 2023-03-09 22:20:24 +01:00 committed by GitHub
parent c4422e65f8
commit e91ed6e5a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -174,12 +174,12 @@
if (preg_replace('/^.*?(aastra).*$/i', '$1', $agent) == "aastra") {
return "aastra";
}
if (preg_replace('/^.*?(cisco).*$/i', '$1', $agent) == "cisco") {
return "cisco";
}
if (preg_replace('/^.*?(cisco\/spa).*$/i', '$1', $agent) == "cisco/spa") {
return "cisco-spa";
}
if (preg_replace('/^.*?(cisco).*$/i', '$1', $agent) == "cisco") {
return "cisco";
}
if (preg_replace('/^.*?(digium).*$/i', '$1', $agent) == "digium") {
return "digium";
}