nitb: Integrate the SUP client into the osmo-nitb

This commit is contained in:
Ivan Kluchnikov
2015-08-11 07:54:23 +03:00
parent b96f1912da
commit 014316f514

View File

@@ -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;