aboutsummaryrefslogtreecommitdiffstats
path: root/SCCPHandler.st
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2011-06-22 19:43:22 +0200
committerHolger Hans Peter Freyther <zecke@selfish.org>2011-06-22 19:43:22 +0200
commitb23662828c02bb49bec4a47472b779cba71d0b2f (patch)
tree43edbcb8520e9dbd9747e0c2d86bfe8b1032a49d /SCCPHandler.st
parentcfae3fca95c6a02d10f624448f893b6842d53b68 (diff)
sccp: Specify which connection will be taken down
Diffstat (limited to 'SCCPHandler.st')
-rw-r--r--SCCPHandler.st11
1 files changed, 8 insertions, 3 deletions
diff --git a/SCCPHandler.st b/SCCPHandler.st
index 66c4cd4..b3901f3 100644
--- a/SCCPHandler.st
+++ b/SCCPHandler.st
@@ -241,12 +241,17 @@ My timeout values can be seen in ITU Q.714 Annex C.4'>
startTias [
<category: 'confirm-timer'>
t_ias ifNotNil: [t_ias cancel. t_ias := nil].
- t_ias := self schedule: self class tiasTime block: [self sendInactivty].
+ state = self class stateConnected ifTrue: [
+ t_ias := self schedule: self class tiasTime
+ block: [self sendInactivty]].
]
startTiar [
<category: 'confirm-timer'>
- t_iar := self schedule: self class tiarTime block: [self sendRelease].
+ t_iar ifNotNil: [t_iar cancel. t_iar := nil].
+ state = self class stateConnected ifTrue: [
+ t_iar := self schedule: self class tiarTime
+ block: [self sendRelease]].
]
sendInactivty [
@@ -261,7 +266,7 @@ My timeout values can be seen in ITU Q.714 Annex C.4'>
sendRelease [
<category: 'confirm-timer'>
- self logError: 'Releasing connection due inactivity.' area: #sccp.
+ self logError: 'SCCP(srcref:%1) rel con due inactivity.' % {self srcRef} area: #sccp.
self release.
]