summaryrefslogtreecommitdiffstats
path: root/openbsc/src/libmsc
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@gnumonks.org>2017-08-07 16:17:17 +0200
committerPablo Neira Ayuso <pablo@gnumonks.org>2017-08-09 14:21:38 +0200
commitac8ca4cfd19a23131959e88be49b6c56738a38c0 (patch)
tree17f1a2646eb8e8ba20ea5e51388b8af0955ade58 /openbsc/src/libmsc
parenta6eaeb88f5c81ce1b3802727a3fa087da0bc4e3f (diff)
libmsc: support GSM 03.40 status report for nitb
This patch adds support for GSM 03.40 in nitb mode. MS GSM 03.40 SMSC | | | SMS-SUBMIT | |--------------------------->| | GSM 04.11 RP-ACK | |<---------------------------| | SMS-DELIVER | |<---------------------------| | GSM 04.11 RP-ACK | |--------------------------->| | SMS-STATUS-REPORT | |<---------------------------| | GSM 04.11 RP-ACK | |--------------------------->| | | Change-Id: I5cc7bb4ebadde0940f44d10c3df34707b0615160
Diffstat (limited to 'openbsc/src/libmsc')
-rw-r--r--openbsc/src/libmsc/gsm_04_11.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/openbsc/src/libmsc/gsm_04_11.c b/openbsc/src/libmsc/gsm_04_11.c
index 80c3d779e..73e0f554e 100644
--- a/openbsc/src/libmsc/gsm_04_11.c
+++ b/openbsc/src/libmsc/gsm_04_11.c
@@ -682,6 +682,11 @@ static void sms_status_report(struct gsm_sms *gsms,
LOGP(DLSMS, LOGL_ERROR,
"Failed to send status report! err=%d\n", rc);
}
+
+ /* No route via SMPP, send the GSM 03.40 status-report now. */
+ if (gsms->receiver)
+ gsm340_rx_sms_submit(sms_report);
+
LOGP(DLSMS, LOGL_NOTICE, "Status report has been sent\n");
sms_free(sms_report);