<p>Vadim Yanitskiy has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/13633">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">libmsc/gsm_04_11.c: clarify implicit CP-ACK handling<br><br>Change-Id: I3c5327a5019590c65d0ccb33a52f07b3988ea952<br>---<br>M src/libmsc/gsm_04_11.c<br>1 file changed, 6 insertions(+), 4 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-msc refs/changes/33/13633/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 434f878..da0744a 100644</span><br><span>--- a/src/libmsc/gsm_04_11.c</span><br><span>+++ b/src/libmsc/gsm_04_11.c</span><br><span>@@ -1238,11 +1238,13 @@</span><br><span>    LOG_TRANS(trans, LOGL_DEBUG, "receiving SMS message %s\n",</span><br><span>                   gsm48_pdisc_msgtype_name(gsm48_hdr_pdisc(gh), gsm48_hdr_msg_type(gh)));</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-   /* 5.4: For MO, if a CP-DATA is received for a new</span><br><span style="color: hsl(0, 100%, 40%);">-       * transaction, equals reception of an implicit</span><br><span style="color: hsl(0, 100%, 40%);">-  * last CP-ACK for previous transaction */</span><br><span style="color: hsl(120, 100%, 40%);">+    /* According to section 5.3.4, due to structure of message flow on</span><br><span style="color: hsl(120, 100%, 40%);">+     * SAPI 0 and 3 it is possible that the CP-ACK of a short message</span><br><span style="color: hsl(120, 100%, 40%);">+      * transfer might not be received. In this case the reception of</span><br><span style="color: hsl(120, 100%, 40%);">+       * CP-DATA may be interpreted as the reception of the awaited</span><br><span style="color: hsl(120, 100%, 40%);">+  * CP-ACK (implicit) and CP-DATA message. */</span><br><span>         if (trans->sms.smc_inst.cp_state == GSM411_CPS_IDLE</span><br><span style="color: hsl(0, 100%, 40%);">-   && msg_type == GSM411_MT_CP_DATA) {</span><br><span style="color: hsl(120, 100%, 40%);">+      && msg_type == GSM411_MT_CP_DATA) {</span><br><span>              int i;</span><br><span>               struct gsm_trans *ptrans;</span><br><span> </span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/13633">change 13633</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/13633"/><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: I3c5327a5019590c65d0ccb33a52f07b3988ea952 </div>
<div style="display:none"> Gerrit-Change-Number: 13633 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Vadim Yanitskiy <axilirator@gmail.com> </div>