diff options
author | Pablo Neira Ayuso <pablo@gnumonks.org> | 2017-08-07 16:17:17 +0200 |
---|---|---|
committer | Neels Hofmeyr <neels@hofmeyr.de> | 2017-08-27 02:33:49 +0200 |
commit | 27aed14892ed1b9e2d7d14b096917fd76591aa39 (patch) | |
tree | 3a79f7227913fc82bdfc4f7022e4ec9e8bc1d91a | |
parent | bd71d32dcaeca0c1dae514d026bcd015fd41aad7 (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
-rw-r--r-- | src/libmsc/gsm_04_11.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libmsc/gsm_04_11.c b/src/libmsc/gsm_04_11.c index 0a1348d1d..261e5cd64 100644 --- a/src/libmsc/gsm_04_11.c +++ b/src/libmsc/gsm_04_11.c @@ -683,6 +683,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); |