lynxis lazus has uploaded this change for review. (
https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/40650?usp=email )
Change subject: GSUP Templates: fix empty destination_name in GSUP ISD/UL
......................................................................
GSUP Templates: fix empty destination_name in GSUP ISD/UL
The destination_name TLV should be either set with a valid name
or not present, but a field with length 0 shouldn't be used.
Change-Id: Iab4d1f6211e4f6351ad56246aa1d934c5fc34912
---
M library/GSUP_Templates.ttcn
1 file changed, 7 insertions(+), 7 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/50/40650/1
diff --git a/library/GSUP_Templates.ttcn b/library/GSUP_Templates.ttcn
index 327f7f6..f51fdc6 100644
--- a/library/GSUP_Templates.ttcn
+++ b/library/GSUP_Templates.ttcn
@@ -418,9 +418,9 @@
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, 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 ts_GSUP_UL_RES(hexstring imsi, template octetstring destination_name :=
omit) :=
+ ts_GSUP(OSMO_GSUP_MSGT_UPDATE_LOCATION_RESULT,
+ f_gen_ts_ies(imsi, destination_name := destination_name));
template GSUP_PDU tr_GSUP_UL_RES(template hexstring imsi, template octetstring
destination_name := omit) :=
tr_GSUP(OSMO_GSUP_MSGT_UPDATE_LOCATION_RESULT, f_gen_tr_ies(imsi, destination_name :=
destination_name));
@@ -434,10 +434,10 @@
tr_GSUP(OSMO_GSUP_MSGT_UPDATE_LOCATION_ERROR,
f_gen_tr_ies(imsi, cause := cause, destination_name := destination_name));
-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_Destination_Name(destination_name))});
+template GSUP_PDU ts_GSUP_ISD_REQ(hexstring imsi, hexstring msisdn, template octetstring
destination_name := omit) :=
+ ts_GSUP(OSMO_GSUP_MSGT_INSERT_DATA_REQUEST,
+ f_gen_ts_ies(imsi, destination_name := destination_name) & {
+ valueof(ts_GSUP_IE_MSISDN(msisdn)) });
template GSUP_PDU tr_GSUP_ISD_REQ(template hexstring imsi, template hexstring msisdn :=
?,
template octetstring destination_name := omit) :=
--
To view, visit
https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/40650?usp=email
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: Iab4d1f6211e4f6351ad56246aa1d934c5fc34912
Gerrit-Change-Number: 40650
Gerrit-PatchSet: 1
Gerrit-Owner: lynxis lazus <lynxis(a)fe80.eu>