Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added support of refArDo element, as required for parsing profiles cr… #9

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,10 @@ public HttpResponse clientRSPRequest(final String body,
final String url) throws Exception {

Pair<String, String> contentType = new Pair<>("Content-Type", "application/json");
Pair<String, String> accept = new Pair<>("Accept", "application/json");
Pair<String, String> userAgent = new Pair<>("User-Agent", "gsma-rsp-com.truphone.lpad");
Pair<String, String> xAdminProtocol = new Pair<>("X-Admin-Protocol", "gsma/rsp/v2.2.0");

return invoke("POST", body, rspServerUrl, url, Arrays.asList(contentType, accept, userAgent, xAdminProtocol));
return invoke("POST", body, rspServerUrl, url, Arrays.asList(contentType, userAgent, xAdminProtocol));
}

public HttpResponse clientSimpleRequest(final String body,
Expand Down
15 changes: 13 additions & 2 deletions lpad-sm-dp-plus-connector/src/main/resources/rsp.asn
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,18 @@ ProfileInfo ::= [PRIVATE 3] SEQUENCE { -- Tag 'E3'
notificationConfigurationInfo [22] SEQUENCE OF NotificationConfigurationInformation OPTIONAL, -- Tag 'B6'
profileOwner [23] OperatorID OPTIONAL, -- Tag 'B7'
dpProprietaryData [24] DpProprietaryData OPTIONAL, -- Tag 'B8'
profilePolicyRules [25] PprIds OPTIONAL -- Tag '99'
profilePolicyRules [25] PprIds OPTIONAL, -- Tag '99'
refArDo [118] SEQUENCE OF RefArDo OPTIONAL -- Tag 'BF76'
}

RefArDo ::= [PRIVATE 2] SEQUENCE { -- Tag 'E2'
refDo [PRIVATE 1] SEQUENCE { -- Tag 'E1'
deviceAppIdRefDo [PRIVATE 1] OCTET STRING (SIZE(20|32)), -- Tag 'C1'
pkgRefDo [PRIVATE 10] OCTET STRING (SIZE(0..127)) OPTIONAL -- Tag 'CA'
},
arDo [PRIVATE 3] SEQUENCE { -- Tag 'E3'
permArDo [PRIVATE 27] OCTET STRING (SIZE(8)) -- Tag 'DB'
}
}

PprIds ::= BIT STRING {-- Definition of Profile Policy Rules identifiers
Expand Down Expand Up @@ -782,4 +793,4 @@ EventEntries ::= SEQUENCE {
rspServerAddress UTF8String
}

END
END