TalkAlias - putting back callsign
This commit is contained in:
parent
eadb8b3af8
commit
183df0248f
1 changed files with 9 additions and 10 deletions
|
@ -831,8 +831,9 @@ function getName($callsign) {
|
||||||
// M: 2017-02-13 15:53:31.253 0000: 05 00 20 47 69 6F 76 61 DC *.. Giova.*
|
// M: 2017-02-13 15:53:31.253 0000: 05 00 20 47 69 6F 76 61 DC *.. Giova.*
|
||||||
function decodeAlias($logLine) {
|
function decodeAlias($logLine) {
|
||||||
if (substr($logLine, 34, 2) !=="04")
|
if (substr($logLine, 34, 2) !=="04")
|
||||||
{
|
|
||||||
$tok1 = encode(substr($logLine, 40, 2));
|
$tok1 = encode(substr($logLine, 40, 2));
|
||||||
|
else
|
||||||
|
$tok1 = "";
|
||||||
$tok2 = encode(substr($logLine, 43, 2));
|
$tok2 = encode(substr($logLine, 43, 2));
|
||||||
$tok3 = encode(substr($logLine, 46, 2));
|
$tok3 = encode(substr($logLine, 46, 2));
|
||||||
$tok4 = encode(substr($logLine, 49, 2));
|
$tok4 = encode(substr($logLine, 49, 2));
|
||||||
|
@ -841,6 +842,4 @@ function decodeAlias($logLine) {
|
||||||
$tok7 = encode(dechex(hexdec(substr($logLine, 58, 2))/2));
|
$tok7 = encode(dechex(hexdec(substr($logLine, 58, 2))/2));
|
||||||
return $tok1.$tok2.$tok3.$tok4.$tok5.$tok6.$tok7;
|
return $tok1.$tok2.$tok3.$tok4.$tok5.$tok6.$tok7;
|
||||||
}
|
}
|
||||||
return;
|
|
||||||
}
|
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Reference in a new issue