diff options
author | Vadim Yanitskiy <axilirator@gmail.com> | 2018-11-28 23:05:51 +0700 |
---|---|---|
committer | Vadim Yanitskiy <axilirator@gmail.com> | 2019-02-20 03:22:38 +0700 |
commit | 64623e18484d52a9d6eb5f0fa7166c78d8605422 (patch) | |
tree | 7ceb383dc0d1f0e29e1f8e0de0c3d1bfefad3bad /tests | |
parent | 390d140b568ef8d776e5d7376168ba35b4f444a0 (diff) |
libmsc/gsm_09_11.c: implement guard timer for NCSS sessions
It may happen that either the MS or an EUSE would become
unresponsive during a call independent SS session, e.g.
due to a bug, or a dropped message. In such cases, the
corresponding transaction would remain unfreed forever.
This change introduces a guard timer, that prevents keeping
'stalled' NCSS sessions forever. As soon as it expires, both
sides (i.e. MS and EUSE) are getting notified, and the
transaction is being released.
By default, the timer expires after 30 seconds. As soon as
either the MS, or an EUSE initiates any activity,
the watchdog timer is rescheduled.
The timeout value can be configured from the VTY:
msc
...
! Use 0 to disable this timer
ncss guard-timeout 30
Please note that changing the timeout value at run-time
doesn't affect the existing NCSS sessions, excepting the
case when the timer is disabled at run-time.
This change makes TC_lu_and_ss_session_timeout pass.
Change-Id: Icf4d87c45e90324764073e8230e0fb9cb96dd9cb
Related Change-Id: (TTCN) I3e1791773d56617172ae27a46889a1ae4d400e2f
Related: OS#3655
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_nodes.vty | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/test_nodes.vty b/tests/test_nodes.vty index f2312d144..fb9e5f051 100644 --- a/tests/test_nodes.vty +++ b/tests/test_nodes.vty @@ -34,6 +34,7 @@ OsmoMSC(config-msc)# list mncc internal mncc external MNCC_SOCKET_PATH mncc guard-timeout <0-255> + ncss guard-timeout <0-255> no assign-tmsi auth-tuple-max-reuse-count <-1-2147483647> auth-tuple-reuse-on-error (0|1) @@ -50,6 +51,12 @@ OsmoMSC(config-msc)# list mgw remote-port <0-65535> ... +OsmoMSC(config-msc)# ncss? + ncss Configure call independent Supplementary Services + +OsmoMSC(config-msc)# ncss ? + guard-timeout Set guard timer for session activity + OsmoMSC(config-msc)# mncc? mncc Configure Mobile Network Call Control @@ -123,6 +130,7 @@ network periodic location update 30 msc mncc guard-timeout 180 + ncss guard-timeout 30 assign-tmsi cs7-instance-a 0 ... |