dexter has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/onomondo-eim/+/43400?usp=email )


Change subject: esipa_rest_utils: add profileInfoList fields for ecall and 
fallback
......................................................................

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(-)



  git pull ssh://gerrit.osmocom.org:29418/onomondo-eim refs/changes/00/43400/1

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 3b16492..7959866 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 https://gerrit.osmocom.org/c/onomondo-eim/+/43400?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings?usp=email

Gerrit-MessageType: newchange
Gerrit-Project: onomondo-eim
Gerrit-Branch: master
Gerrit-Change-Id: I8765e6d17b32ba65569bb2c935e7c1540018912d
Gerrit-Change-Number: 43400
Gerrit-PatchSet: 1
Gerrit-Owner: dexter <[email protected]>

Reply via email to