aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/osmo-nitb
diff options
context:
space:
mode:
authorIvan Kluchnikov <kluchnikovi@gmail.com>2015-08-11 07:54:23 +0300
committerIvan Kluchnikov <kluchnikovi@gmail.com>2017-02-07 18:59:53 +0300
commit014316f514847feb8ee305d8d61025eca908aaa8 (patch)
tree18ff5265ffecab54f39fd982c0097c4d69d356aa /openbsc/src/osmo-nitb
parentb96f1912da38c5fd62e1065faf0c84e54eb62ba4 (diff)
nitb: Integrate the SUP client into the osmo-nitb
Diffstat (limited to 'openbsc/src/osmo-nitb')
-rw-r--r--openbsc/src/osmo-nitb/bsc_hack.c9
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;