diff options
author | Ivan Kluchnikov <kluchnikovi@gmail.com> | 2015-08-11 07:54:23 +0300 |
---|---|---|
committer | Ivan Kluchnikov <kluchnikovi@gmail.com> | 2015-10-24 12:26:15 +0300 |
commit | 3cce9fda6dcd7f1f8eac6e095d05662a4a8f0e69 (patch) | |
tree | 1cf4376a676f20daad6dab0898deab638f9444e9 | |
parent | f3d2e9369867aacffc69f074d9ebfb021313dcf2 (diff) |
nitb: Integrate the SUP client into the osmo-nitb
-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 351789992..c3fc8c614 100644 --- a/openbsc/src/osmo-nitb/bsc_hack.c +++ b/openbsc/src/osmo-nitb/bsc_hack.c @@ -51,6 +51,7 @@ #include <openbsc/ctrl.h> #include <openbsc/osmo_bsc_rf.h> #include <openbsc/smpp.h> +#include <openbsc/gsm_sup.h> #include "../../bscconfig.h" @@ -323,6 +324,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; |