From 2b7c938f4993314b1465222728d44789a9ec1978 Mon Sep 17 00:00:00 2001 From: Luis Daniel Lucio Quiroz Date: Mon, 3 Aug 2020 15:12:19 -0400 Subject: [PATCH] Add digium support to get_vendor_by_agent() (#5380) Missing this brand --- app/devices/resources/classes/device.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/devices/resources/classes/device.php b/app/devices/resources/classes/device.php index bf63889f7a..3629450c0b 100644 --- a/app/devices/resources/classes/device.php +++ b/app/devices/resources/classes/device.php @@ -175,6 +175,9 @@ include "root.php"; if (preg_replace('/^.*?(cisco\/spa).*$/i', '$1', $agent) == "cisco/spa") { return "cisco-spa"; } + if (preg_replace('/^.*?(digium).*$/i', '$1', $agent) == "digium") { + return "digium"; + } if (preg_replace('/^.*?(grandstream).*$/i', '$1', $agent) == "grandstream") { return "grandstream"; } @@ -1223,4 +1226,4 @@ include "root.php"; } //class -?> \ No newline at end of file +?>