#!/usr/bin/php
<?php

require_once('/usr/share/ombutel/www/includes/cli.php');

use ombutel\ami;
use ombutel\helper;

if ($argc = 2) {
	try {
		$ami = ami::current();
        $ami->command("core set verbose 0");
        $ami->command("sip set debug off");
		list(, $filepath) = $argv;
		if (file_exists($filepath)) {
			unlink($filepath);
		}
		helper::execute('diagnostics', "remove_service_timer", $response);
	} catch (\Exception $e) {
        echo $e->getMessage();
	}
}