summaryrefslogtreecommitdiffstats
path: root/openbsc/src/libmsc/smpp_openbsc.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2013-01-20 17:43:50 +0100
committerHarald Welte <laforge@gnumonks.org>2013-01-20 19:21:34 +0100
commitb5a4edd09be1b1327cea8cf1b613b5dd35c1aa50 (patch)
tree7b2106168a8cccfb50afb646559cbbb0cbf49f9a /openbsc/src/libmsc/smpp_openbsc.c
parentd4d1d5e7516c6e90668b9b321614d81045a60461 (diff)
SMPP: Inform the SMS Queue that a SMS was submitted to kick the queue
Work on the 'forward' part.. tell the sms queue that something has been submitted for it.. Conflicts: openbsc/src/libmsc/smpp_openbsc.c
Diffstat (limited to 'openbsc/src/libmsc/smpp_openbsc.c')
-rw-r--r--openbsc/src/libmsc/smpp_openbsc.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/openbsc/src/libmsc/smpp_openbsc.c b/openbsc/src/libmsc/smpp_openbsc.c
index b19d739da..307fc844f 100644
--- a/openbsc/src/libmsc/smpp_openbsc.c
+++ b/openbsc/src/libmsc/smpp_openbsc.c
@@ -185,9 +185,11 @@ int handle_smpp_submit(struct osmo_esme *esme, struct submit_sm_t *submit,
struct submit_sm_resp_t *submit_r)
{
struct gsm_sms *sms;
+ struct gsm_network *net = esme->smsc->priv;
+ struct sms_signal_data sig;
int rc = -1;
- rc = submit_to_sms(&sms, esme->smsc->priv, submit);
+ rc = submit_to_sms(&sms, net, submit);
if (rc != ESME_ROK) {
submit_r->command_status = rc;
return 0;
@@ -210,6 +212,9 @@ int handle_smpp_submit(struct osmo_esme *esme, struct submit_sm_t *submit,
}
strcpy((char *)submit_r->message_id, "msg_id_not_implemented");
LOGP(DLSMS, LOGL_INFO, "SMPP SUBMIT-SM: Stored in DB\n");
+
+ memset(&sig, 0, sizeof(sig));
+ osmo_signal_dispatch(SS_SMS, S_SMS_SUBMITTED, &sig);
rc = 0;
break;
case 2: /* forward (i.e. transaction) mode */