diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2011-05-18 23:37:17 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2011-05-18 23:37:17 +0200 |
commit | c122f648353dc709beba0c7328dccad6a63934a1 (patch) | |
tree | b2ef099cae027c89a46f1ea4869effead4fb5b43 /SCCPHandler.st | |
parent | 97710b02911550096de215e9a622637edb9496b2 (diff) |
sccp: Call a function on UDT messages
Allow to handle UDT messages by subclassing and reimplementing,
by default only log the UDT.
Diffstat (limited to 'SCCPHandler.st')
-rw-r--r-- | SCCPHandler.st | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/SCCPHandler.st b/SCCPHandler.st index caae989..90c6dd2 100644 --- a/SCCPHandler.st +++ b/SCCPHandler.st @@ -328,9 +328,18 @@ Object subclass: SCCPHandler [ ^ true ]. + (sccp isKindOf: Osmo.SCCPUDT) ifTrue: [ + self handleUDT: sccp. + ^ true + ]. + self dispatchMessage: sccp. ] + handleUDT: aSCCP [ + self logNotice: 'Incomind UDT message' area: #sccp. + ] + connection: aConnection [ connection := aConnection. |