<p>keith <strong>submitted</strong> this change.</p><p><a href="https://gerrit.osmocom.org/c/osmo-msc/+/19935">View Change</a></p><div style="white-space:pre-wrap">Approvals:
  laforge: Looks good to me, but someone else must approve
  fixeria: Looks good to me, but someone else must approve
  keith: Looks good to me, approved
  Jenkins Builder: Verified

</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">Don't Store an SMS in the database when the ESME is not Bound<br><br>We may never be able to deliver this SMS if it depends on the ESME, as we will<br>not resubmit the SMS to the ESME. Better to reject it at this time and have the MS<br>try again later.<br><br>Change-Id: I2c50904349dd4ed229b60b8468d776b817c0bd44<br>Related: OS#4740<br>---<br>M src/libmsc/gsm_04_11.c<br>1 file changed, 10 insertions(+), 0 deletions(-)<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 5c26929..e5063dc 100644</span><br><span>--- a/src/libmsc/gsm_04_11.c</span><br><span>+++ b/src/libmsc/gsm_04_11.c</span><br><span>@@ -633,6 +633,16 @@</span><br><span>    if (gsms->smpp.esme) {</span><br><span>            return -EINPROGRESS;</span><br><span>         }</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+   /* This SMS got routed through SMPP, but the configured ESME was</span><br><span style="color: hsl(120, 100%, 40%);">+       * unavailable at this time. This is an OOO condition.</span><br><span style="color: hsl(120, 100%, 40%);">+         * Don't store this SMS in the database as we may never be</span><br><span style="color: hsl(120, 100%, 40%);">+         * able to deliver it. (we would need to process the stored SMS and</span><br><span style="color: hsl(120, 100%, 40%);">+    * attempt re-submission to the ESME)</span><br><span style="color: hsl(120, 100%, 40%);">+  */</span><br><span style="color: hsl(120, 100%, 40%);">+   if (rc == GSM411_RP_CAUSE_MO_NET_OUT_OF_ORDER)</span><br><span style="color: hsl(120, 100%, 40%);">+                return rc;</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span>         /*</span><br><span>    * This SMS got routed through SMPP or no receiver exists.</span><br><span>    * In any case, we store it in the database for further processing.</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-msc/+/19935">change 19935</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/c/osmo-msc/+/19935"/><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-Change-Id: I2c50904349dd4ed229b60b8468d776b817c0bd44 </div>
<div style="display:none"> Gerrit-Change-Number: 19935 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: keith <keith@rhizomatica.org> </div>
<div style="display:none"> Gerrit-Assignee: fixeria <axilirator@gmail.com> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-Reviewer: fixeria <vyanitskiy@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: keith <keith@rhizomatica.org> </div>
<div style="display:none"> Gerrit-Reviewer: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-CC: fixeria <axilirator@gmail.com> </div>
<div style="display:none"> Gerrit-MessageType: merged </div>