<p>Keith Whyte has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/12538">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">Don't send SMS STATUS REPORT locally if the ESME accepted it.<br><br>Backport of https://gerrit.osmocom.org/11792/<br><br>When using smpp-first, after the ESME accepts our STATUS REPORT,<br>we were sending it locally into gsm340_rx_sms_submit() anyway.<br>In the case of the ESME mirroring the report back to us, this<br>would result in two copies of the status report in the SMS<br>database, which were also both then delivered to the MS.<br>Some MS then display the REPORT to the user as if it were<br>a normal SMS.<br><br>With this patch, we check if it is the sms_report that has had<br>receiver set in sms_route_mt_sms() and not the original SMS we<br>are reporting on, which of course already has receiver set.<br><br>Change-Id: I2136489bd21c4755463278a4048a446e5bc4a9d2<br>---<br>M openbsc/src/libmsc/gsm_04_11.c<br>1 file changed, 1 insertion(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/openbsc refs/changes/38/12538/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/openbsc/src/libmsc/gsm_04_11.c b/openbsc/src/libmsc/gsm_04_11.c</span><br><span>index 25ef487..d5619b2 100644</span><br><span>--- a/openbsc/src/libmsc/gsm_04_11.c</span><br><span>+++ b/openbsc/src/libmsc/gsm_04_11.c</span><br><span>@@ -697,7 +697,7 @@</span><br><span>       }</span><br><span> </span><br><span>        /* No route via SMPP, send the GSM 03.40 status-report now. */</span><br><span style="color: hsl(0, 100%, 40%);">-  if (gsms->receiver)</span><br><span style="color: hsl(120, 100%, 40%);">+        if (sms_report->receiver)</span><br><span>                 gsm340_rx_sms_submit(sms_report);</span><br><span> </span><br><span>        LOGP(DLSMS, LOGL_NOTICE, "Status report has been sent\n");</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/12538">change 12538</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/12538"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: openbsc </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I2136489bd21c4755463278a4048a446e5bc4a9d2 </div>
<div style="display:none"> Gerrit-Change-Number: 12538 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Keith Whyte <keith@rhizomatica.org> </div>