Random Project

PHP5 Modification

Works great! However, if you’re using PHP5, you’re likely going to run into a PHP Notice error message:

PHP Notice: Undefined variable: asttext in /check_asterisk_pri on line 181

To remedy this, just replace the following code:

while( !feof ( $astsock ))
{
$asttext .= fread( $astsock, 8192);
}

with the following:

$asttext = stream_get_contents($astsock);

Thanks for making this…we’ve been having odd problems with PRI syncing and this keeps us informed.