IT Management Services

getRegistrationStatus($account);

/* Get Errors – Invalid_Account */
if($response[status]!=’success’)
{
echo $response[status];
exit;
}

/* Is Registered */
echo “{$account} Registered : {$response[registered]}
“;

if($response[registered]!=’yes’)
{
exec (‘/usr/local/bin/growlnotify -m “VoIP Down”‘);
}

/* Account #2 */
$account = “account_subaccount #2 goes here”;

/* Get Registration Status */
$response = $voipms->getRegistrationStatus($account);

/* Get Errors – Invalid_Account */
if($response[status]!=’success’)
{
echo $response[status];
exit;
}

/* Is Registered */
echo “{$account} Registered : {$response[registered]}
“;

if($response[registered]!=’yes’)
{
exec (‘/usr/local/bin/growlnotify -m “VoIP Down”‘);
}

date_default_timezone_set (“America/Los_Angeles”);
echo date(“d M y H:i:s”,time())

?>