Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
oai
cn5g
oai-cn5g-smf
Commits
64f0b314
Commit
64f0b314
authored
Apr 21, 2020
by
Tien-Thinh Nguyen
Browse files
fix issue for pdu session type/remove dead code
parent
4ce48382
Changes
5
Hide whitespace changes
Inline
Side-by-side
src/smf_app/smf_context.cpp
View file @
64f0b314
...
...
@@ -880,6 +880,7 @@ void smf_context::handle_pdu_session_create_sm_context_request(
sm_context_resp
->
res
.
set_pdu_session_id
(
pdu_session_id
);
sm_context_resp
->
res
.
set_snssai
(
snssai
);
sm_context_resp
->
res
.
set_dnn
(
dnn
);
sm_context_resp
->
res
.
set_pdu_session_type
(
sm_context_req_msg
.
get_pdu_session_type
());
sm_context_resp
->
set_scid
(
smreq
->
scid
);
//Step 3. find pdu_session
...
...
src/test/inputs/apitest.json
deleted
100644 → 0
View file @
4ce48382
{
"jsonData"
:
{
"supi"
:
"208931234561000"
,
"pei"
:
"pei"
,
"gpsi"
:
"gpsi"
,
"pduSessionId"
:
5
,
"dnn"
:
"default"
,
"sNssai"
:
{
"sst"
:
1
,
"sd"
:
123
},
"hplmnSnssai"
:
{
"sst"
:
1
,
"sd"
:
345
},
"servingNfId"
:
""
,
"guami"
:
{
"plmnId"
:
{
"mcc"
:
"122"
,
"mnc"
:
"13"
},
"amfId"
:
"2"
},
"serviceName"
:
""
,
"servingNetwork"
:
{
"mcc"
:
"122"
,
"mnc"
:
"13"
},
"requestType"
:
1
,
"anType"
:
""
,
"secondAnType"
:
""
,
"ratType"
:
""
,
"presenceInLadn"
:
""
,
"ueTimeZone"
:
""
,
"smContextStatusUri"
:
""
,
"hSmfUri"
:
""
,
"additionalHsmfUri"
:
[],
"oldPduSessionId"
:
1
,
"pduSessionsActivateList"
:
[
1
,
2
],
"ueEpsPdnConnection"
:
""
,
"hoState"
:
""
,
"pcfId"
:
""
,
"nrfUi"
:
""
,
"supportedFeatures"
:
""
,
"selMode"
:
"VERIFIED"
,
"udmGroupId"
:
""
,
"routingIndicator"
:
""
,
"epsBearerCtxStatus"
:
""
,
"cpCiotEnabled"
:
true
,
"invokeNef"
:
true
,
"maPduIndication"
:
false
,
"smContextRef"
:
""
,
"n2SmInfo"
:
{
"contentId"
:
"n2SmInfo"
},
"n1SmMsg"
:
{
"contentId"
:
"n1SmMsg"
}
},
"binaryDataN1SmMessage"
:
"2e031fc100ff93a2390f616263646566406768696a6b2e6c6d"
,
"binaryDataN1SmMessage_full"
:
"00 00 00 00 00 00 00 00 00 00 00 00 08 00 45 02 00 55 00 01 40 00 40 84 3c 25 7f 00 00 01 7f 00 00 01 df b0 96 0c ea 4c f5 4b 00 00 00 00 00 03 00 35 20 bc ec 86 00 00 00 00 00 00 00 00 00 0f 40 21 00 00 01 00 26 00 1a 19 2e 03 1f c1 00 ff 93 a2 39 0f 61 62 63 64 65 66 40 67 68 69 6a 6b 2e 6c 6d"
}
src/test/inputs/apitest_full.json
deleted
100644 → 0
View file @
4ce48382
{
"jsonData"
:
{
"supi"
:
"supi"
,
"pei"
:
"pei"
,
"gpsi"
:
"gpsi"
,
"pduSessionId"
:
1
,
"dnn"
:
"dnn"
,
"sNssai"
:
{
"sst"
:
1
,
"sd"
:
"sd"
},
"hplmnSnssai"
:
{
"sst"
:
1
,
"sd"
:
"sd"
},
"servingNfId"
:
""
,
"guami"
:
{
"plmnId"
:
{
"mcc"
:
"122"
,
"mnc"
:
"13"
},
"amfId"
:
"2"
},
"serviceName"
:
""
,
"servingNetwork"
:
{
"mcc"
:
"122"
,
"mnc"
:
"13"
},
"requestType"
:
""
,
"anType"
:
""
,
"secondAnType"
:
""
,
"ratType"
:
""
,
"presenceInLadn"
:
""
,
"ueLocation"
:
""
,
"ueTimeZone"
:
""
,
"addUeLocation"
:
""
,
"smContextStatusUri"
:
""
,
"hSmfUri"
:
""
,
"additionalHsmfUri"
:
[],
"oldPduSessionId"
:
""
,
"pduSessionsActivateList"
:
[
1
,
2
],
"ueEpsPdnConnection"
:
""
,
"hoState"
:
""
,
"pcfId"
:
""
,
"nrfUi"
:
""
,
"supportedFeatures"
:
""
,
"selMode"
:
""
,
"backupAmfInfo"
:
[],
"traceData"
:
""
,
"udmGroupId"
:
""
,
"routingIndicator"
:
""
,
"epsInterworkingInd"
:
""
,
"indirectForwardingFlag"
:
""
,
"targetId"
:
""
,
"epsBearerCtxStatus"
:
""
,
"cpCiotEnabled"
:
""
,
"invokeNef"
:
""
,
"maPduIndication"
:
""
,
"smContextRef"
:
""
,
"n2SmInfo"
:
""
,
"n1SmMsg"
:
{
"contentId"
:
"contentId"
}
},
"binaryDataN1SmMessage"
:
"binaryDataN1SmMessage"
,
"binaryDataN2SmInformation"
:
"binaryDataN2SmInformation"
}
src/test/inputs/pdu_session_create_request.hex
deleted
100644 → 0
View file @
4ce48382
00000 00 00 00 00 00 00 00 00
00008 00 00 00 00 08 00 45 02
00010 00 55 00 01 40 00 40 84
00018 3c 25 7f 00 00 01 7f 00
00020 00 01 df b0 96 0c ea 4c
00028 f5 4b 00 00 00 00 00 03
00030 00 35 20 bc ec 86 00 00
00038 00 00 00 00 00 00 00 0f
00040 40 21 00 00 01 00 26 00
00048 1a 19 2e 03 1f c1 00 ff
00050 93 a2 39 0f 61 62 63 64
00058 65 66 40 67 68 69 6a 6b
00060 2e 6c 6d
src/test/inputs/session_management_subscription.json
deleted
100644 → 0
View file @
4ce48382
{
"singleNssai"
:
{
"sst"
:
1
,
"sd"
:
123
},
"dnnConfigurations"
:
{
"default"
:
{
"pduSessionTypes"
:
{
"defaultSessionType"
:
"IPV4"
}
,
"sscModes"
:
{
"defaultSscMode"
:
"SSC_MODE_1"
}
,
"5gQosProfile"
:
{
"5qi"
:
12345
,
"arp"
:
{
"priorityLevel"
:
1
,
"preemptCap"
:
"NOT_PREEMPT"
,
"preemptVuln"
:
"NOT_PREEMPTABLE"
}
},
"sessionAmbr"
:
{
"uplink"
:
"10Mbps"
,
"downlink"
:
"11Mbps"
}
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment