aboutsummaryrefslogtreecommitdiffstats
path: root/src/hlr.c
diff options
context:
space:
mode:
authorVadim Yanitskiy <axilirator@gmail.com>2018-12-01 00:03:39 +0700
committerHarald Welte <laforge@gnumonks.org>2018-12-05 19:45:34 +0000
commitd157a56361c9b42bc63dc998183b2c4471a5ef04 (patch)
tree0c6355920452124c7195ecf7aa2397571f7f9e28 /src/hlr.c
parent9c8806acf537fec0cec279da19185e857ac39470 (diff)
SS/USSD: make NCSS session timeout configurable
It may happen that either the MS or an ESME would become unresponsive, e.g. due to a bug, or a dropped message. This is why we have SS session timeout, that prevents keeping 'stalled' sessions forever. Let's introduce a VTY option, which can be used to configure this timer (by default it's set to 30 seconds): hlr ... ! Use 0 to disable this timer ncss-guard-timeout 30 Change-Id: I971fc2cee6fd46d4d5d6dac6c634e0b22fff183d Related: OS#3717
Diffstat (limited to 'src/hlr.c')
-rw-r--r--src/hlr.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/hlr.c b/src/hlr.c
index 14945b6..4873a66 100644
--- a/src/hlr.c
+++ b/src/hlr.c
@@ -611,6 +611,9 @@ int main(int argc, char **argv)
INIT_LLIST_HEAD(&g_hlr->ss_sessions);
INIT_LLIST_HEAD(&g_hlr->ussd_routes);
+ /* Init default (call independent) SS session guard timeout value */
+ g_hlr->ncss_guard_timeout = NCSS_GUARD_TIMEOUT_DEFAULT;
+
rc = osmo_init_logging2(hlr_ctx, &hlr_log_info);
if (rc < 0) {
fprintf(stderr, "Error initializing logging\n");