aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/osmo-nitb
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2012-11-20 22:22:04 +0100
committerHarald Welte <laforge@gnumonks.org>2012-11-24 11:07:29 +0100
commit338e3b3b4bf4947db817a57e0bf1838400e690ca (patch)
tree2bbdc6e476a26e39b03bb4fa75ffd03096938a4b /openbsc/src/osmo-nitb
parenteff4094950cb7e796ae8baee065528617349b0a8 (diff)
SMPP: VTY configuration of SMPP code, authentication support
Diffstat (limited to 'openbsc/src/osmo-nitb')
-rw-r--r--openbsc/src/osmo-nitb/bsc_hack.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/openbsc/src/osmo-nitb/bsc_hack.c b/openbsc/src/osmo-nitb/bsc_hack.c
index b82a02621..40c6f4337 100644
--- a/openbsc/src/osmo-nitb/bsc_hack.c
+++ b/openbsc/src/osmo-nitb/bsc_hack.c
@@ -254,6 +254,11 @@ int main(int argc, char **argv)
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 @@ int main(int argc, char **argv)
/* 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) {