<p>daniel <strong>submitted</strong> this change.</p><p><a href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/21251">View Change</a></p><div style="white-space:pre-wrap">Approvals:
  Jenkins Builder: Verified
  daniel: Looks good to me, approved

</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">Add templates for BSSGP Radio Status procedure<br><br>Change-Id: I6d49eb4907c4568d88da5d6fd7962e388a3607fb<br>Related: SYS#5210<br>---<br>M library/Osmocom_Gb_Types.ttcn<br>1 file changed, 54 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/library/Osmocom_Gb_Types.ttcn b/library/Osmocom_Gb_Types.ttcn</span><br><span>index 3ba3fca..8d48cb1 100644</span><br><span>--- a/library/Osmocom_Gb_Types.ttcn</span><br><span>+++ b/library/Osmocom_Gb_Types.ttcn</span><br><span>@@ -1746,8 +1746,62 @@</span><br><span>         }</span><br><span> }</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+type enumerated BssgpRadioCause {</span><br><span style="color: hsl(120, 100%, 40%);">+ BSSGP_RADIO_CAUSE_CONTACT_LOST          ('00'H),</span><br><span style="color: hsl(120, 100%, 40%);">+      BSSGP_RADIO_CAUSE_LINK_QUAL_INSUFF      ('01'H),</span><br><span style="color: hsl(120, 100%, 40%);">+      BSSGP_RADIO_CAUSE_CELL_RESEL_ORDERED    ('02'H),</span><br><span style="color: hsl(120, 100%, 40%);">+      BSSGP_RADIO_CAUSE_CELL_RESEL_PREPARE    ('03'H),</span><br><span style="color: hsl(120, 100%, 40%);">+      BSSGP_RADIO_CAUSE_CELL_RESEL_FAILURE    ('04'H)</span><br><span style="color: hsl(120, 100%, 40%);">+} with { variant "FIELDLENGTH(8)" };</span><br><span> </span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+function ts_BSSGP_RADIO_CAUSE(template (omit) BssgpRadioCause cause) return template (omit) Radio_Cause {</span><br><span style="color: hsl(120, 100%, 40%);">+    var template (omit) Radio_Cause ret;</span><br><span style="color: hsl(120, 100%, 40%);">+  if (istemplatekind(cause, "omit")) {</span><br><span style="color: hsl(120, 100%, 40%);">+                ret := omit;</span><br><span style="color: hsl(120, 100%, 40%);">+  } else {</span><br><span style="color: hsl(120, 100%, 40%);">+              ret.iEI := '19'O;</span><br><span style="color: hsl(120, 100%, 40%);">+             ret.ext := '1'B;</span><br><span style="color: hsl(120, 100%, 40%);">+              ret.lengthIndicator := { length1 := 1 };</span><br><span style="color: hsl(120, 100%, 40%);">+              ret.radio_Cause_Value := int2oct(enum2int(valueof(cause)), 1);</span><br><span style="color: hsl(120, 100%, 40%);">+        }</span><br><span style="color: hsl(120, 100%, 40%);">+     return ret;</span><br><span style="color: hsl(120, 100%, 40%);">+}</span><br><span style="color: hsl(120, 100%, 40%);">+function tr_BSSGP_RADIO_CAUSE(template BssgpRadioCause cause) return template (present) Radio_Cause {</span><br><span style="color: hsl(120, 100%, 40%);">+ var template Radio_Cause ret;</span><br><span style="color: hsl(120, 100%, 40%);">+ ret.iEI := '19'O;</span><br><span style="color: hsl(120, 100%, 40%);">+     ret.ext := '1'B;</span><br><span style="color: hsl(120, 100%, 40%);">+      ret.lengthIndicator := { length1 := 1 };</span><br><span style="color: hsl(120, 100%, 40%);">+      if (isvalue(cause)) {</span><br><span style="color: hsl(120, 100%, 40%);">+         ret.radio_Cause_Value := int2oct(enum2int(valueof(cause)), 1);</span><br><span style="color: hsl(120, 100%, 40%);">+        } else {</span><br><span style="color: hsl(120, 100%, 40%);">+              ret.radio_Cause_Value := ?</span><br><span style="color: hsl(120, 100%, 40%);">+    }</span><br><span style="color: hsl(120, 100%, 40%);">+     return ret;</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%);">+/* 10.3.5 */</span><br><span style="color: hsl(120, 100%, 40%);">+template (value) PDU_BSSGP</span><br><span style="color: hsl(120, 100%, 40%);">+ts_BSSGP_RADIO_STATUS(GprsTlli tlli, template (value) BssgpRadioCause cause) := {</span><br><span style="color: hsl(120, 100%, 40%);">+ pDU_BSSGP_RADIO_STATUS := {</span><br><span style="color: hsl(120, 100%, 40%);">+           bssgpPduType := '0a'O,</span><br><span style="color: hsl(120, 100%, 40%);">+                tLLI := ts_BSSGP_TLLI(tlli),</span><br><span style="color: hsl(120, 100%, 40%);">+          tMSI := omit,</span><br><span style="color: hsl(120, 100%, 40%);">+         iMSI := omit,</span><br><span style="color: hsl(120, 100%, 40%);">+         radio_Cause := ts_BSSGP_RADIO_CAUSE(cause)</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%);">+template (present) PDU_BSSGP</span><br><span style="color: hsl(120, 100%, 40%);">+tr_BSSGP_RADIO_STATUS(template (present) GprsTlli tlli, template (present) BssgpRadioCause cause) := {</span><br><span style="color: hsl(120, 100%, 40%);">+    pDU_BSSGP_RADIO_STATUS := {</span><br><span style="color: hsl(120, 100%, 40%);">+           bssgpPduType := '0a'O,</span><br><span style="color: hsl(120, 100%, 40%);">+                tLLI := ts_BSSGP_TLLI(tlli),</span><br><span style="color: hsl(120, 100%, 40%);">+          tMSI := omit,</span><br><span style="color: hsl(120, 100%, 40%);">+         iMSI := omit,</span><br><span style="color: hsl(120, 100%, 40%);">+         radio_Cause := tr_BSSGP_RADIO_CAUSE(cause)</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%);">+</span><br><span> </span><br><span> </span><br><span> /* PDU permitted on PTP BVC only (TS 48.018 Section 5.4.1) */</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/21251">change 21251</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/+/21251"/><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: I6d49eb4907c4568d88da5d6fd7962e388a3607fb </div>
<div style="display:none"> Gerrit-Change-Number: 21251 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: daniel <dwillmann@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-Reviewer: daniel <dwillmann@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-Reviewer: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: merged </div>