laforge has uploaded this change for review. ( https://gerrit.osmocom.org/c/pysim/+/37523?usp=email )
Change subject: pySim.ts_31_103: update to spec v18.1.0 Release 18
......................................................................
pySim.ts_31_103: update to spec v18.1.0 Release 18
This adds two new EFs and one new IST service.
Change-Id: Iced1700046b459399a3e8305e1387ec65eeb3536
---
M pySim/ts_31_103.py
1 file changed, 39 insertions(+), 2 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/pysim refs/changes/23/37523/1
diff --git a/pySim/ts_31_103.py b/pySim/ts_31_103.py
index 81de13c..2a71449 100644
--- a/pySim/ts_31_103.py
+++ b/pySim/ts_31_103.py
@@ -1,12 +1,12 @@
# -*- coding: utf-8 -*-
"""
-Various constants from 3GPP TS 31.103 V16.1.0
+Various constants from 3GPP TS 31.103 V18.1.0
"""
#
# Copyright (C) 2020 Supreeth Herle <herlesupreeth(a)gmail.com>
-# Copyright (C) 2021 Harald Welte <laforge(a)osmocom.org>
+# Copyright (C) 2021-2024 Harald Welte <laforge(a)osmocom.org>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -56,6 +56,7 @@
19: 'XCAP Configuration Data',
20: 'WebRTC URI',
21: 'MuD and MiD configuration data',
+ 22: 'IMS Data Channel indication',
}
# TS 31.103 Section 4.2.2
@@ -279,6 +280,29 @@
super().__init__(fid=fid, sfid=sfid, name=name, desc=desc, **kwargs)
self._tlv = EF_MuDMiDConfigData.MudMidConfigDataCollection
+# TS 31.103 Section 4.2.22
+class EF_AC_GBAUAPI(LinFixedEF):
+ """The use of this EF is eescribed in 3GPP TS 31.130"""
+ class AppletNafAccessControl(BER_TLV_IE, tag=0x80):
+ # the use of Int8ub as length field in Prefixed is strictly speaking incorrect, as it is a BER-TLV
+ # length field whihc will consume two bytes from length > 127 bytes. However, AIDs and NAF IDs can
+ # safely be assumed shorter than that
+ _construct = Struct('aid'/Prefixed(Int8ub, GreedyBytes),
+ 'naf_id'/Prefixed(Int8ub, GreedyBytes))
+ def __init__(self, fid='6f0a', sfid=None, name='EF.GBAUAPI',
+ desc='Access Control to GBA_U_API', **kwargs):
+ super().__init__(fid=fid, sfid=sfid, name=name, desc=desc, **kwargs)
+ self._tlv = EF_AC_GBAUAPI.AppletNafAccessControl
+
+# TS 31.103 Section 4.2.23
+class EF_IMSDCI(TransparentEF):
+ """See Management object as defined in 3GPP TS 24.275."""
+ def __init__(self, fid='6f0b', sfid=None, name='EF.IMSDCI', desc='IMS Data Channel Indication', **kwargs):
+ super().__init__(fid=fid, sfid=sfid, name=name, desc=desc, **kwargs)
+ self._construct = Enum(Byte, ims_dc_not_allowed=0x00,
+ ims_dc_allowed_after_ims_session=0x01,
+ ims_dc_allowed_simultaneous_ims_session=0x02)
+
class ADF_ISIM(CardADF):
def __init__(self, aid='a0000000871004', has_fs=True, name='ADF.ISIM', fid=None, sfid=None,
@@ -306,6 +330,8 @@
EF_XCAPConfigData(service=19),
EF_WebRTCURI(service=20),
EF_MuDMiDConfigData(service=21),
+ EF_AC_GBAUAPI(service=2),
+ EF_IMSDCI(service=22),
]
self.add_files(files)
# add those commands to the general commands of a TransparentEF
--
To view, visit https://gerrit.osmocom.org/c/pysim/+/37523?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: Iced1700046b459399a3e8305e1387ec65eeb3536
Gerrit-Change-Number: 37523
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge(a)osmocom.org>
Gerrit-MessageType: newchange
Attention is currently required from: laforge.
Hello Jenkins Builder, dexter,
I'd like you to reexamine a change. Please visit
https://gerrit.osmocom.org/c/pysim/+/37511?usp=email
to look at the new patch set (#3).
The following approvals got outdated and were removed:
Verified+1 by Jenkins Builder
The change is no longer submittable: Verified is unsatisfied now.
Change subject: osmo-smdpp + es9p_client: HTTP status 204 is used for handleNotification
......................................................................
osmo-smdpp + es9p_client: HTTP status 204 is used for handleNotification
As SGP.22 states, the handleNotification endpoint uses HTTP status 204,
not 200 (due to its empty body).
Change-Id: I890bdbd3e1c4578d2d5f0367958fdce26e338cac
---
M osmo-smdpp.py
M pySim/esim/es9p.py
2 files changed, 16 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/pysim refs/changes/11/37511/3
--
To view, visit https://gerrit.osmocom.org/c/pysim/+/37511?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: I890bdbd3e1c4578d2d5f0367958fdce26e338cac
Gerrit-Change-Number: 37511
Gerrit-PatchSet: 3
Gerrit-Owner: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: dexter <pmaier(a)sysmocom.de>
Gerrit-Attention: laforge <laforge(a)osmocom.org>
Gerrit-MessageType: newpatchset
Attention is currently required from: laforge.
dexter has posted comments on this change. ( https://gerrit.osmocom.org/c/pysim/+/37497?usp=email )
Change subject: osmo-smdpp: Make sure to return empty HTTP response in handleNotification
......................................................................
Patch Set 2: Code-Review+1
(1 comment)
File osmo-smdpp.py:
https://gerrit.osmocom.org/c/pysim/+/37497/comment/cbce0dad_421d1a0f
PS2, Line 191: return ''
May it makes sens to print something like "Tx (empty response)" for consistency?
--
To view, visit https://gerrit.osmocom.org/c/pysim/+/37497?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: I1cad539accbc3e7222bfd4780955b3b1ff694c5b
Gerrit-Change-Number: 37497
Gerrit-PatchSet: 2
Gerrit-Owner: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: dexter <pmaier(a)sysmocom.de>
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Attention: laforge <laforge(a)osmocom.org>
Gerrit-Comment-Date: Wed, 17 Jul 2024 13:20:47 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment