git.cweiske.de
/
auerswald-callnotifier.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
522f718
)
remove preg call parsing of info lines; we've got the real edss1 messages to utilize
author
Christian Weiske
<cweiske@cweiske.de>
Thu, 26 Jul 2012 05:33:43 +0000
(07:33 +0200)
committer
Christian Weiske
<cweiske@cweiske.de>
Thu, 26 Jul 2012 05:33:43 +0000
(07:33 +0200)
src/callnotifier/MessageHandler.php
patch
|
blob
|
history
diff --git
a/src/callnotifier/MessageHandler.php
b/src/callnotifier/MessageHandler.php
index 9e65b8138db75d50b9c02c9444ad1d871b2384c8..59e8fa0f1ab577600ea4d3596ce9876f44979003 100644
(file)
--- a/
src/callnotifier/MessageHandler.php
+++ b/
src/callnotifier/MessageHandler.php
@@
-14,7
+14,6
@@
class MessageHandler
*/
protected $logger = array(
'msgData' => array(),
*/
protected $logger = array(
'msgData' => array(),
- 'incomingCall' => array(),
'edss1msg' => array(),
);
'edss1msg' => array(),
);
@@
-73,15
+72,8
@@
class MessageHandler
)
);
)
);
- if ($type
!= 'Info
') {
+ if ($type
== 'Debug
') {
$this->parseEDSS1($details);
$this->parseEDSS1($details);
- return;
- }
- //Vegw/Ets-Cref:[0xffef]/[0x64] - VEGW_SETUP from upper layer to internal destination: CGPN[**22]->CDPN[41],
- $regex = '#CGPN\\[([^\\]]+)\\]->CDPN\\[([^\\]]+)\\]#';
- if (preg_match($regex, $details, $matches)) {
- list(, $from, $to) = $matches;
- $this->log('incomingCall', array('from' => $from, 'to' => $to));
}
}
}
}
@@
-105,16
+97,6
@@
class MessageHandler
$bytestring = substr($details, 5);
$bytes = static::getBytesFromHexString($bytestring);
$bytestring = substr($details, 5);
$bytes = static::getBytesFromHexString($bytestring);
- $msgtype = $bytes{7};
- static $interestingTyps = array(
- EDSS1_Message::SETUP,
- EDSS1_Message::CONNECT,
- EDSS1_Message::INFORMATION
- );
- if (!in_array($msgtype, $interestingTyps)) {
- //return;
- }
-
$mp = new EDSS1_Parser();
$msg = $mp->parse($bytes);
$mp = new EDSS1_Parser();
$msg = $mp->parse($bytes);