reworked reflector-detection on TS2, should now also work on DMRplus

This commit is contained in:
root 2016-09-08 19:28:07 +00:00
parent 1e2ded406a
commit 16d84575c3

View file

@ -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";