Possible modification to allmon.inc.php file to display echolink node info?

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_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;


Yeah, I can take a look at that when I get back from this trip. Php can shell out and return the response for parsing. See exec(). However, using asterisk -rx would only work when Allmon is installed on an AllStar node. Not everybody runs Allmon that way including me, so I never had that itch to scratch.