+ if ($type == 'Debug') {
+ $msg = $this->parseEDSS1($details);
+ if (is_object($msg)) {
+ $this->log->log('edss1msg', array('msg' => $msg));
+ $this->callMonitor->handle($msg);
+ }
+ }
+ }
+
+ /**
+ * Example string: "T02: 00 A3 06 0A 08 01 01 5A FF 0A"
+ *
+ * @param string $details Detail string of a debug message
+ *
+ * @return EDSS1_Message The retrieved message, NULL if none.
+ */
+ protected function parseEDSS1($details)
+ {
+ if ($details{0} != 'T' && $details{0} != 'N') {
+ //we only want byte data
+ return;
+ }
+ if (substr($details, 16, 4) != ' 08 ') {
+ //only E-DSS-1, no other packets