dexter submitted this change.

View Change

Approvals: dexter: Looks good to me, approved laforge: Looks good to me, but someone else must approve Jenkins Builder: Verified
esipa_rest_utils: add profileInfoList fields for ecall and fallback

SGP.32 V.1.2 adds three (important) new boolean fields to the
profileInfoList, which are ecallIndication, fallbackAllowed and
fallbackAttribute.

This patch adds support for those fields so that they can be
queried via the REST API.

Related: SYS8100
Change-Id: I8765e6d17b32ba65569bb2c935e7c1540018912d
---
M priv/rest_api_response_schema.json
M src/esipa_rest_utils.erl
2 files changed, 16 insertions(+), 1 deletion(-)

diff --git a/priv/rest_api_response_schema.json b/priv/rest_api_response_schema.json
index 04ae8ce..6542215 100644
--- a/priv/rest_api_response_schema.json
+++ b/priv/rest_api_response_schema.json
@@ -134,6 +134,18 @@
"profileClass": {
"description": "0=test, 1=provisioning, 2=operational",
"type": "integer"
+ },
+ "ecallIndication": {
+ "description": "indicates if the profile is an Emergency Profile",
+ "type": "boolean"
+ },
+ "fallbackAttribute": {
+ "description": "indicates a Fallback Profile",
+ "type": "boolean"
+ },
+ "fallbackAllowed": {
+ "description": "indicates if Fallback is authorized by the Profile Owner",
+ "type": "boolean"
}
}
}
diff --git a/src/esipa_rest_utils.erl b/src/esipa_rest_utils.erl
index b71f885..c415692 100644
--- a/src/esipa_rest_utils.erl
+++ b/src/esipa_rest_utils.erl
@@ -361,13 +361,16 @@
memberOrNil(profileName, ProfileInfo),
memberOrNil(iconType, ProfileInfo),
memberOrNilHex(icon, ProfileInfo),
- memberOrNil(profileClass, ProfileInfo)
+ memberOrNil(profileClass, ProfileInfo),
% TODO: also extract useful information from the following (optional) fields:
% notificationConfigurationInfo
% profileOwner
% dpProprietaryData
% profilePolicyRules
% serviceSpecificDataStoredInEuicc
+ memberOrNil(ecallIndication, ProfileInfo),
+ memberOrNil(fallbackAttribute, ProfileInfo),
+ memberOrNil(fallbackAllowed, ProfileInfo)
],
{lists:filter(fun(Member) -> Member /= nil end, List)}
end,

To view, visit change 43400. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-MessageType: merged
Gerrit-Project: onomondo-eim
Gerrit-Branch: master
Gerrit-Change-Id: I8765e6d17b32ba65569bb2c935e7c1540018912d
Gerrit-Change-Number: 43400
Gerrit-PatchSet: 3
Gerrit-Owner: dexter <pmaier@sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: dexter <pmaier@sysmocom.de>
Gerrit-Reviewer: jolly <andreas@eversberg.eu>
Gerrit-Reviewer: laforge <laforge@osmocom.org>