Hi everyone,
Is it possible to edit this to have it query asterisk via “asterisk -rx” to lookup the Echolink station and display the stations callsign and info, instead of “Echolink” on the allmon2 webpage? Asterisk has the info, as I can login via asterisk -r and perform: “echolink dbget nodename 444444”, and it spits out the node number, callsign, and ip address of that echolink node. I’ve tried tweaking allmon.inc.php and end up breaking it every time. Still learning…
function getAstInfo($nodeNum, $node=array()) {
global $astdb;
#print ‘
’; print_r($nodeNum); print ‘’;
// Build info string
//if (array_key_exists($nodeNum, $astdb)) {
if (isset($astdb[$nodeNum])) {
$dbNode = $astdb[$nodeNum];
$info = $dbNode[1] . ' ' . $dbNode[2] . ' ' . $dbNode[3];
} elseif ($nodeNum > 3000000) {
$info = "Echolink";
} elseif (!empty($node['ip'])) {
if (strlen(trim($node['ip'])) > 3) {
$info = '(' . $node['ip'] . ')';
} else {
$info = ' ';
}
} else {
$info = ' ';
}
return $info;
}