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
This commit is contained in:
Pablo Neira Ayuso
2017-08-07 16:17:17 +02:00
committed by Neels Hofmeyr
parent 3c8d627a08
commit b31d2c62a6

View File

@@ -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);