mirror of
https://gitea.osmocom.org/cellular-infrastructure/osmo-mgw.git
synced 2025-10-23 08:12:01 +00:00
nitb: Integrate the SUP client into the osmo-nitb
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user