<p>fixeria has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/14551">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">library/RAN_Emulation.ttcnpp: fix: properly handle SAPI / DLCI for RANAP<br><br>Some of our SMS related test cases are failing. The problem is<br>that SMS related RAN messages shall be sent on SAPI 3, as per<br>GSM TS 04.11, section 2.3, while they actually being sent on<br>SAPI 0.<br><br>For the messages coming from the TCs towards OsmoMSC over RANAP,<br>we need to convert from DLCI to SAPI in f_xmit_raw_l3(). OsmoMSC<br>also needs to be patched, because it seems to ignore SAPI IE.<br><br>Change-Id: I6199fd5f26774fb1ec419bc1ef9e1caeca3a0d35<br>---<br>M library/RAN_Emulation.ttcnpp<br>1 file changed, 8 insertions(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/51/14551/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/library/RAN_Emulation.ttcnpp b/library/RAN_Emulation.ttcnpp</span><br><span>index c7f67c4..60c363b 100644</span><br><span>--- a/library/RAN_Emulation.ttcnpp</span><br><span>+++ b/library/RAN_Emulation.ttcnpp</span><br><span>@@ -1096,8 +1096,15 @@</span><br><span> #endif</span><br><span> #ifdef RAN_EMULATION_RANAP</span><br><span>  case (RAN_PROTOCOL_RANAP) {</span><br><span style="color: hsl(120, 100%, 40%);">+           var RANAP_IEs.SAPI sapi := sapi_0;</span><br><span>           var RANAP_PDU ranap;</span><br><span style="color: hsl(0, 100%, 40%);">-            ranap := valueof(ts_RANAP_DirectTransfer(l3_enc, sapi := sapi_0));</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+          /* FIXME: is it the correct way of DLCI -> SAPI transformation? */</span><br><span style="color: hsl(120, 100%, 40%);">+         if (dlci == '03'O) {</span><br><span style="color: hsl(120, 100%, 40%);">+                  sapi := sapi_3;</span><br><span style="color: hsl(120, 100%, 40%);">+               }</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+           ranap := valueof(ts_RANAP_DirectTransfer(l3_enc, sapi := sapi));</span><br><span>             RANAP.send(ts_RANAP_DATA_req(sccp_conn_id, ranap));</span><br><span>          }</span><br><span> #endif</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/14551">change 14551</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-ttcn3-hacks/+/14551"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-ttcn3-hacks </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I6199fd5f26774fb1ec419bc1ef9e1caeca3a0d35 </div>
<div style="display:none"> Gerrit-Change-Number: 14551 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: fixeria <axilirator@gmail.com> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>