<p>Keith Whyte has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/11792">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">libmsc: Don't send SMS STATUS REPORT locally if 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>This 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 with a receiver and<br>not the original SMS we are reporting on, which of course has a receiver.<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;">git pull ssh://gerrit.osmocom.org:29418/osmo-msc refs/changes/92/11792/1</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: newchange </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: 1 </div>
<div style="display:none"> Gerrit-Owner: Keith Whyte <keith@rhizomatica.org> </div>