diff options
-rw-r--r-- | openbsc/src/osmo-nitb/bsc_hack.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/openbsc/src/osmo-nitb/bsc_hack.c b/openbsc/src/osmo-nitb/bsc_hack.c index bbcdd1be9..cbab97173 100644 --- a/openbsc/src/osmo-nitb/bsc_hack.c +++ b/openbsc/src/osmo-nitb/bsc_hack.c @@ -53,6 +53,7 @@ #include <openbsc/ctrl.h> #include <openbsc/osmo_bsc_rf.h> #include <openbsc/smpp.h> +#include <openbsc/gsm_sup.h> #include "../../bscconfig.h" @@ -367,6 +368,14 @@ int main(int argc, char **argv) } printf("DB: Database prepared.\n"); + if (bsc_gsmnet->auth_policy == GSM_AUTH_POLICY_REMOTE) { + rc = sup_init(bsc_gsmnet); + if (rc < 0) { + LOGP(DSUP, LOGL_FATAL, "Cannot set up subscriber management\n"); + exit(2); + } + } + /* setup the timer */ db_sync_timer.cb = db_sync_timer_cb; db_sync_timer.data = NULL; |