SMPP: VTY configuration of SMPP code, authentication support
diff --git a/openbsc/src/osmo-nitb/bsc_hack.c b/openbsc/src/osmo-nitb/bsc_hack.c
index b82a026..40c6f43 100644
--- a/openbsc/src/osmo-nitb/bsc_hack.c
+++ b/openbsc/src/osmo-nitb/bsc_hack.c
@@ -254,6 +254,11 @@
vty_init(&vty_info);
bsc_vty_init(&log_info);
+#ifdef BUILD_SMPP
+ if (smpp_openbsc_init(bsc_gsmnet, 0) < 0)
+ return -1;
+#endif
+
/* parse options */
handle_options(argc, argv);
@@ -312,10 +317,7 @@
/* start the SMS queue */
if (sms_queue_start(bsc_gsmnet, 20) != 0)
return -1;
-#ifdef BUILD_SMPP
- if (smpp_openbsc_init(bsc_gsmnet, 6040) < 0)
- return -1;
-#endif
+
if (daemonize) {
rc = osmo_daemonize();
if (rc < 0) {