From 16d84575c3992f417f22d8089e78d526764d4c39 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 8 Sep 2016 19:28:07 +0000 Subject: [PATCH] reworked reflector-detection on TS2, should now also work on DMRplus --- include/functions.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/include/functions.php b/include/functions.php index e055f47..9f3c95e 100644 --- a/include/functions.php +++ b/include/functions.php @@ -461,6 +461,17 @@ function getActualReflector($logLines, $mode) { return "Reflector ".$from; } } + $source = "RF"; + if (strpos($logLine,"network") > 0 ) { + $source = "Net"; + } + + if ( $source == "RF") { + $to = substr($logLine, strpos($logLine, "to") + 3); + if (strlen($to) == 5 && startsWith($to, "4")) { + return "Reflector ".$to; + } + } } } return "Reflector not linked";