return explode("\n", $data['body']);
}
+ /**
+ * get the Missed Calls from router
+ *
+ * @return array
+ */
+ public function getMissedCalls() {
+ $path = 'data/Syslog.json';
+ $fields = array('exporttype' => '1');
+ $cookie = 'challengev='.$this->challenge.'; '.$this->session;
+ $data = $this->sentRequest($path, $fields, $cookie);
+
+ if (empty($data['body'])) {
+ throw new Exception('unable to get syslog data');
+ }
+
+ return explode("\n", $data['body']);
+ }
+
/**
* sends the request to router
*