summaryrefslogtreecommitdiffstats
path: root/openbsc/src/libmsc/smpp_openbsc.c
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/libmsc/smpp_openbsc.c
parenteff4094950cb7e796ae8baee065528617349b0a8 (diff)
SMPP: VTY configuration of SMPP code, authentication support
Diffstat (limited to 'openbsc/src/libmsc/smpp_openbsc.c')
-rw-r--r--openbsc/src/libmsc/smpp_openbsc.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/openbsc/src/libmsc/smpp_openbsc.c b/openbsc/src/libmsc/smpp_openbsc.c
index 4a54e4780..d8dde2993 100644
--- a/openbsc/src/libmsc/smpp_openbsc.c
+++ b/openbsc/src/libmsc/smpp_openbsc.c
@@ -288,6 +288,14 @@ static int smpp_subscr_cb(unsigned int subsys, unsigned int signal,
return 0;
}
+static struct smsc *g_smsc;
+
+struct smsc *smsc_from_vty(struct vty *v)
+{
+ /* FIXME: this is ugly */
+ return g_smsc;
+}
+
/*! \brief Initialize the OpenBSC SMPP interface */
int smpp_openbsc_init(struct gsm_network *net, uint16_t port)
{
@@ -303,5 +311,9 @@ int smpp_openbsc_init(struct gsm_network *net, uint16_t port)
osmo_signal_register_handler(SS_SMS, smpp_sms_cb, net);
osmo_signal_register_handler(SS_SUBSCR, smpp_subscr_cb, smsc);
+ g_smsc = smsc;
+
+ smpp_vty_init();
+
return rc;
}