<p>Keith Whyte <strong>merged</strong> this change.</p><p><a href="https://gerrit.osmocom.org/11792">View Change</a></p><div style="white-space:pre-wrap">Approvals:
  Vadim Yanitskiy: Looks good to me, but someone else must approve
  Keith Whyte: Looks good to me, but someone else must approve
  Pau Espin Pedrol: Looks good to me, approved
  Jenkins Builder: Verified

</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">libmsc: Don't send SMS STATUS REPORT locally if the ESME accepted it.<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>This causes no visible error to the user but is a waste of radio<br>resources.<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: I3529b89535800eaa1127721d613fa7bbcb8b23be<br>---<br>M 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;"><span>diff --git a/src/libmsc/gsm_04_11.c b/src/libmsc/gsm_04_11.c</span><br><span>index 8d9169b..52edcd6 100644</span><br><span>--- a/src/libmsc/gsm_04_11.c</span><br><span>+++ b/src/libmsc/gsm_04_11.c</span><br><span>@@ -691,7 +691,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/11792">change 11792</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/11792"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-msc </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: merged </div>
<div style="display:none"> Gerrit-Change-Id: I3529b89535800eaa1127721d613fa7bbcb8b23be </div>
<div style="display:none"> Gerrit-Change-Number: 11792 </div>
<div style="display:none"> Gerrit-PatchSet: 4 </div>
<div style="display:none"> Gerrit-Owner: Keith Whyte <keith@rhizomatica.org> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder (1000002) </div>
<div style="display:none"> Gerrit-Reviewer: Keith Whyte <keith@rhizomatica.org> </div>
<div style="display:none"> Gerrit-Reviewer: Pau Espin Pedrol <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Vadim Yanitskiy <axilirator@gmail.com> </div>