Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-AMF-Simple
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
CommunityXG
OpenXG-AMF-Simple
Commits
c5c7dad2
Commit
c5c7dad2
authored
Jul 02, 2020
by
Tien-Thinh Nguyen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update configuration file/ quick bug fixes for testing with dsTester
parent
2005bdea
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
12 deletions
+14
-12
etc/amf.conf
etc/amf.conf
+8
-6
src/amf-app/amf_n11.cpp
src/amf-app/amf_n11.cpp
+5
-5
src/ngap/ngap_app/ngap_message_callback.hpp
src/ngap/ngap_app/ngap_message_callback.hpp
+1
-1
No files found.
etc/amf.conf
View file @
c5c7dad2
...
...
@@ -5,15 +5,16 @@ AMF =
PID_DIRECTORY
=
"/var/run"
;
######################################################################## NG SETUP RESPONSE IEs ############################################################
AMF_NAME
=
"bupt-amf"
;
GUAMI
:{
MCC
=
"
320"
;
MNC
=
"230"
;
RegionID
=
"128"
;
AMFSetID
=
"4
"
;
AMFPointer
=
"1"
}
GUAMI
:{
MCC
=
"
208"
;
MNC
=
"95"
;
RegionID
=
"128"
;
AMFSetID
=
"1
"
;
AMFPointer
=
"1"
}
ServedGUAMIList
= (
{
MCC
=
"
320"
;
MNC
=
"230
"
;
RegionID
=
"10"
;
AMFSetID
=
"1"
;
AMFPointer
=
"0"
},
#48bits <MCC><MNC><RegionID><AMFSetID><AMFPointer>
{
MCC
=
"
208"
;
MNC
=
"95
"
;
RegionID
=
"10"
;
AMFSetID
=
"1"
;
AMFPointer
=
"0"
},
#48bits <MCC><MNC><RegionID><AMFSetID><AMFPointer>
{
MCC
=
"460"
;
MNC
=
"11"
;
RegionID
=
"10"
;
AMFSetID
=
"1"
;
AMFPointer
=
"1"
}
#48bits <MCC><MNC><RegionID><AMFSetID><AMFPointer>
);
RelativeAMFCapacity
=
30
;
PLMNSupportList
= (
{
MCC
=
"
320"
;
MNC
=
"230
"
;
TAC
=
0
xa000
;
{
MCC
=
"
208"
;
MNC
=
"95
"
;
TAC
=
0
xa000
;
SliceSupportList
= (
{
SST
=
"222"
;
SD
=
"123"
},
{
SST
=
"1"
;
SD
=
"none"
},
{
SST
=
"1"
;
SD
=
"12"
}
)
...
...
@@ -30,7 +31,7 @@ AMF =
};
N11
:{
SMF_INSTANCES_POOL
= (
{
SMF_INSTANCE_ID
=
1
;
IPV4_ADDRESS
=
"192.168.122.168"
;
PORT
=
"80"
;
VERSION
=
"v
1
"
;
SELECTED
=
"true"
},
{
SMF_INSTANCE_ID
=
1
;
IPV4_ADDRESS
=
"192.168.122.168"
;
PORT
=
"80"
;
VERSION
=
"v
2
"
;
SELECTED
=
"true"
},
{
SMF_INSTANCE_ID
=
2
;
IPV4_ADDRESS
=
"10.103.238.21"
;
PORT
=
"8181"
;
VERSION
=
"v1"
;
SELECTED
=
"false"
}
);
};
...
...
@@ -43,12 +44,13 @@ AMF =
MYSQL_user
=
"root"
;
# Database server login
MYSQL_pass
=
"linux"
;
# Database server password
MYSQL_db
=
"oai_db"
;
OPERATOR_key
=
"1006020f0a478bf6b699f15c062e42b3"
;
# op
OPERATOR_key
=
"63bfa50ee6523365ff14c1f45f88737d"
;
# op 0x63bfa50ee6523365ff14c1f45f88737d
#Key: 0x0C0A34601D4F07677303652C0462535B
RANDOM
=
"true"
;
};
NAS
:{
#ORDERED_SUPPORTED_INTEGRITY_ALGORITHM_LIST = [ "NIA2" , "NIA1" , "NIA0" ];
ORDERED_SUPPORTED_INTEGRITY_ALGORITHM_LIST
= [
"NIA
1
"
,
"NIA1"
,
"NIA1"
];
ORDERED_SUPPORTED_INTEGRITY_ALGORITHM_LIST
= [
"NIA
0
"
,
"NIA1"
,
"NIA1"
];
ORDERED_SUPPORTED_CIPHERING_ALGORITHM_LIST
= [
"NEA0"
,
"NEA1"
,
"NEA2"
];
#ORDERED_SUPPORTED_CIPHERING_ALGORITHM_LIST = [ "NEA1" , "NEA1" , "NEA1" ];
};
...
...
src/amf-app/amf_n11.cpp
View file @
c5c7dad2
...
...
@@ -177,13 +177,13 @@ void amf_n11::handle_pdu_session_initial_request(string supi, std::shared_ptr<pd
pdu_session_establishment_request
[
"pei"
]
=
"imei-200000000000001"
;
pdu_session_establishment_request
[
"gpsi"
]
=
"msisdn-200000000001"
;
pdu_session_establishment_request
[
"dnn"
]
=
"carrier.com"
;
pdu_session_establishment_request
[
"sNssai"
][
"sst"
]
=
0
;
pdu_session_establishment_request
[
"sNssai"
][
"sd"
]
=
"
0
"
;
pdu_session_establishment_request
[
"sNssai"
][
"sst"
]
=
222
;
pdu_session_establishment_request
[
"sNssai"
][
"sd"
]
=
"
123
"
;
pdu_session_establishment_request
[
"pduSessionId"
]
=
psc
.
get
()
->
pdu_session_id
;
pdu_session_establishment_request
[
"requestType"
]
=
"INITIAL_REQUEST"
;
pdu_session_establishment_request
[
"servingNfId"
]
=
"servingNfId"
;
pdu_session_establishment_request
[
"servingNetwork"
][
"mcc"
]
=
"
460
"
;
pdu_session_establishment_request
[
"servingNetwork"
][
"mnc"
]
=
"
011
"
;
pdu_session_establishment_request
[
"servingNetwork"
][
"mcc"
]
=
"
208
"
;
pdu_session_establishment_request
[
"servingNetwork"
][
"mnc"
]
=
"
95
"
;
pdu_session_establishment_request
[
"anType"
]
=
"3GPP_ACCESS"
;
pdu_session_establishment_request
[
"smContextStatusUri"
]
=
"smContextStatusUri"
;
...
...
@@ -271,7 +271,7 @@ void amf_n11::curl_http_client(string remoteUri, string jsonData, string n1SmMsg
if
(
n1SmMsg
!=
""
){
Logger
::
amf_n11
().
debug
(
"is there ok? n1"
);
unsigned
char
*
n1_msg_hex
=
format_string_as_hex
(
n1SmMsg
);
Logger
::
amf_n11
().
debug
(
"n1 msg hex: %s"
,
n1_msg_hex
);
//
Logger::amf_n11().debug("n1 msg hex: %s", n1_msg_hex);
part
=
curl_mime_addpart
(
mime
);
curl_mime_data
(
part
,
reinterpret_cast
<
const
char
*>
(
n1_msg_hex
),
n1SmMsg
.
length
()
/
2
);
curl_mime_type
(
part
,
"application/vnd.3gpp.5gnas"
);
...
...
src/ngap/ngap_app/ngap_message_callback.hpp
View file @
c5c7dad2
...
...
@@ -128,7 +128,7 @@ int ngap_amf_handle_ue_context_release_complete(const sctp_assoc_id_t assoc_id,
int
ngap_amf_handle_pdu_session_resource_setup_response
(
const
sctp_assoc_id_t
assoc_id
,
const
sctp_stream_id_t
stream
,
struct
Ngap_NGAP_PDU
*
message_p
){
Logger
::
ngap
().
debug
(
"sending itti pdu_session_resource_setup_response to TASK_AMF_N2"
);
#if
0
#if
1
PduSessionResourceSetupResponseMsg
*
pduresp
=
new
PduSessionResourceSetupResponseMsg
();
if
(
!
pduresp
->
decodefrompdu
(
message_p
)){
Logger
::
ngap
().
error
(
"decoding PduSessionResourceSetupResponseMsg message error"
);
...
...
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