aboutsummaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
authorOliver Smith <osmith@sysmocom.de>2020-01-29 14:48:19 +0100
committerOliver Smith <osmith@sysmocom.de>2020-01-29 15:24:07 +0100
commitdbe2756f496125827d5959e9da212ebd88e799d3 (patch)
tree025f08956a369a14bebe056faa2e742b4252c85d /library
parent55511aae4a80a743de7b34d296cf95e49ecd01b9 (diff)
library/GSUP_Types: add dest name to some messages
Prepare for upcoming D-GSM test, that lets OsmoHLR act as proxy. It forwards the messages based on the destination name, so the testsuite must set it correctly. Related: OS#4380 Change-Id: I7623b7a7c7a18ba18a38d0834979d18ab0fbb961
Diffstat (limited to 'library')
-rw-r--r--library/GSUP_Types.ttcn15
1 files changed, 9 insertions, 6 deletions
diff --git a/library/GSUP_Types.ttcn b/library/GSUP_Types.ttcn
index 0f36d4dc..fa912c1c 100644
--- a/library/GSUP_Types.ttcn
+++ b/library/GSUP_Types.ttcn
@@ -502,8 +502,9 @@ template (value) GSUP_PDU ts_GSUP_UL_REQ(hexstring imsi, GSUP_CnDomain dom := OS
template GSUP_PDU tr_GSUP_UL_REQ(template hexstring imsi) :=
tr_GSUP_IMSI(OSMO_GSUP_MSGT_UPDATE_LOCATION_REQUEST, imsi);
-template (value) GSUP_PDU ts_GSUP_UL_RES(hexstring imsi) :=
- ts_GSUP(OSMO_GSUP_MSGT_UPDATE_LOCATION_RESULT, { valueof(ts_GSUP_IE_IMSI(imsi)) });
+template (value) GSUP_PDU ts_GSUP_UL_RES(hexstring imsi, octetstring destination_name := ''O) :=
+ ts_GSUP(OSMO_GSUP_MSGT_UPDATE_LOCATION_RESULT, { valueof(ts_GSUP_IE_IMSI(imsi)),
+ valueof(ts_GSUP_IE_Destination_Name(destination_name))});
template GSUP_PDU tr_GSUP_UL_RES(template hexstring imsi) :=
tr_GSUP_IMSI(OSMO_GSUP_MSGT_UPDATE_LOCATION_RESULT, imsi);
@@ -516,17 +517,19 @@ template GSUP_PDU tr_GSUP_UL_ERR(template hexstring imsi, template integer cause
tr_GSUP(OSMO_GSUP_MSGT_UPDATE_LOCATION_ERROR, {
tr_GSUP_IE_IMSI(imsi), tr_GSUP_IE_Cause(cause) });
-template (value) GSUP_PDU ts_GSUP_ISD_REQ(hexstring imsi, hexstring msisdn) :=
+template (value) GSUP_PDU ts_GSUP_ISD_REQ(hexstring imsi, hexstring msisdn, octetstring destination_name := ''O) :=
ts_GSUP(OSMO_GSUP_MSGT_INSERT_DATA_REQUEST, {
- valueof(ts_GSUP_IE_IMSI(imsi)), valueof(ts_GSUP_IE_MSISDN(msisdn)) });
+ valueof(ts_GSUP_IE_IMSI(imsi)), valueof(ts_GSUP_IE_MSISDN(msisdn)),
+ valueof(ts_GSUP_IE_Destination_Name(destination_name))});
template GSUP_PDU tr_GSUP_ISD_REQ(template hexstring imsi, template hexstring msisdn := ?) :=
tr_GSUP(OSMO_GSUP_MSGT_INSERT_DATA_REQUEST, {
tr_GSUP_IE_IMSI(imsi), *, tr_GSUP_IE_MSISDN(msisdn), * });
-template (value) GSUP_PDU ts_GSUP_ISD_RES(hexstring imsi) :=
+template (value) GSUP_PDU ts_GSUP_ISD_RES(hexstring imsi, octetstring destination_name := ''O) :=
ts_GSUP(OSMO_GSUP_MSGT_INSERT_DATA_RESULT, {
- valueof(ts_GSUP_IE_IMSI(imsi)) });
+ valueof(ts_GSUP_IE_IMSI(imsi)),
+ valueof(ts_GSUP_IE_Destination_Name(destination_name))});
template GSUP_PDU tr_GSUP_ISD_RES(template hexstring imsi) :=
tr_GSUP_IMSI(OSMO_GSUP_MSGT_INSERT_DATA_RESULT, imsi);