Don't send SMS STATUS REPORT locally if the ESME accepted it.

Backport of https://gerrit.osmocom.org/11792/

When using smpp-first, after the ESME accepts our STATUS REPORT,
we were sending it locally into gsm340_rx_sms_submit() anyway.
In the case of the ESME mirroring the report back to us, this
would result in two copies of the status report in the SMS
database, which were also both then delivered to the MS.
Some MS then display the REPORT to the user as if it were
a normal SMS.

With this patch, we check if it is the sms_report that has had
receiver set in sms_route_mt_sms() and not the original SMS we
are reporting on, which of course already has receiver set.

Change-Id: I2136489bd21c4755463278a4048a446e5bc4a9d2
1 file changed
tree: 7988fb2b50f041e56b923a7016c94ccaf8cdcda6
  1. contrib/
  2. debian/
  3. manuals/
  4. openbsc/
  5. .gitignore
  6. .gitreview
  7. .mailmap