Change in osmo-ttcn3-hacks[master]: library/GSUP_Types.ttcn: add empty SS REQ/RSP templates

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Vadim Yanitskiy gerrit-no-reply at lists.osmocom.org
Wed Jun 20 23:19:44 UTC 2018


Vadim Yanitskiy has uploaded this change for review. ( https://gerrit.osmocom.org/9688


Change subject: library/GSUP_Types.ttcn: add empty SS REQ/RSP templates
......................................................................

library/GSUP_Types.ttcn: add empty SS REQ/RSP templates

The 'SS Info' IE is optional for GSUP_PROC_SS_{REQ|RSP} messages,
so it makes sense to add the corresponding empty templates.

Please note that matching with constructions like:

  tr_GSUP(
    OSMO_GSUP_MSGT_PROC_SS_REQUEST,
    {
      tr_GSUP_IE_IMSI(...),
      tr_GSUP_IE_SessionId(...),
      tr_GSUP_IE_SessionState(...),
      omit
    }
  )

wouldn't work for some reason, and this is why the new
99% identical templates are introduced.

Change-Id: I20d9028acbe0c457d2a2cf72eff372b749d8dc30
---
M library/GSUP_Types.ttcn
1 file changed, 50 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/88/9688/1

diff --git a/library/GSUP_Types.ttcn b/library/GSUP_Types.ttcn
index 359e272..d595b00 100644
--- a/library/GSUP_Types.ttcn
+++ b/library/GSUP_Types.ttcn
@@ -581,6 +581,31 @@
 	}
 }
 
+template (value) GSUP_PDU ts_GSUP_PROC_SS_REQ_EMPTY(
+	hexstring imsi,
+	OCT4 sid,
+	GSUP_SessionState state
+) := ts_GSUP(
+	OSMO_GSUP_MSGT_PROC_SS_REQUEST,
+	{
+		valueof(ts_GSUP_IE_IMSI(imsi)),
+		valueof(ts_GSUP_IE_SessionId(sid)),
+		valueof(ts_GSUP_IE_SessionState(state))
+	}
+);
+template GSUP_PDU tr_GSUP_PROC_SS_REQ_EMPTY(
+	template hexstring imsi,
+	template OCT4 sid := ?,
+	template GSUP_SessionState state := ?
+) := tr_GSUP(
+	OSMO_GSUP_MSGT_PROC_SS_REQUEST,
+	{
+		tr_GSUP_IE_IMSI(imsi),
+		tr_GSUP_IE_SessionId(sid),
+		tr_GSUP_IE_SessionState(state)
+	}
+);
+
 template (value) GSUP_PDU ts_GSUP_PROC_SS_REQ(
 	hexstring imsi,
 	OCT4 sid,
@@ -610,6 +635,31 @@
 	}
 );
 
+template (value) GSUP_PDU ts_GSUP_PROC_SS_RES_EMPTY(
+	hexstring imsi,
+	OCT4 sid,
+	GSUP_SessionState state
+) := ts_GSUP(
+	OSMO_GSUP_MSGT_PROC_SS_RESULT,
+	{
+		valueof(ts_GSUP_IE_IMSI(imsi)),
+		valueof(ts_GSUP_IE_SessionId(sid)),
+		valueof(ts_GSUP_IE_SessionState(state))
+	}
+);
+template GSUP_PDU tr_GSUP_PROC_SS_RES_EMPTY(
+	template hexstring imsi,
+	template OCT4 sid := ?,
+	template GSUP_SessionState state := ?
+) := tr_GSUP(
+	OSMO_GSUP_MSGT_PROC_SS_RESULT,
+	{
+		tr_GSUP_IE_IMSI(imsi),
+		tr_GSUP_IE_SessionId(sid),
+		tr_GSUP_IE_SessionState(state)
+	}
+);
+
 template (value) GSUP_PDU ts_GSUP_PROC_SS_RES(
 	hexstring imsi,
 	OCT4 sid,

-- 
To view, visit https://gerrit.osmocom.org/9688
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I20d9028acbe0c457d2a2cf72eff372b749d8dc30
Gerrit-Change-Number: 9688
Gerrit-PatchSet: 1
Gerrit-Owner: Vadim Yanitskiy <axilirator at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20180620/9686921d/attachment.htm>


More information about the gerrit-log mailing list