diff options
author | Vadim Yanitskiy <axilirator@gmail.com> | 2018-12-01 00:03:39 +0700 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2018-12-05 19:45:34 +0000 |
commit | d157a56361c9b42bc63dc998183b2c4471a5ef04 (patch) | |
tree | 0c6355920452124c7195ecf7aa2397571f7f9e28 /src/hlr.c | |
parent | 9c8806acf537fec0cec279da19185e857ac39470 (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.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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"); |