Commit bbbd0ab4 authored by liuyu's avatar liuyu

delete test

parent da0f9ba1
################################################################################
# Licensed to the OpenAirInterface (OAI) Software Alliance under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The OpenAirInterface Software Alliance licenses this file to You under
# the OAI Public License, Version 1.1 (the "License"); you may not use this file
# except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.openairinterface.org/?page_id=698
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#-------------------------------------------------------------------------------
# For more information about the OpenAirInterface (OAI) Software Alliance:
# contact@openairinterface.org
################################################################################
AMF =
{
INSTANCE_ID = 10; # 0 is the default
PID_DIRECTORY = "/var/run"; # /var/run is the default
AMF_NAME = "OAI-AMF";
RELATIVE_CAPACITY = 50;
# Display statistics about whole system (in seconds)
STATISTICS_TIMER_INTERVAL = 20; # YOUR CONFIG HERE
CORE_CONFIGURATION:
{
EMERGENCY_SUPPORT = "false";
};
GUAMI:
{
MCC = "460"; MNC = "03"; RegionID = "128"; AMFSetID = "1"; AMFPointer = "1" # YOUR GUAMI CONFIG HERE
}
SERVED_GUAMI_LIST = (
#{MCC = "460"; MNC = "03"; RegionID = "10"; AMFSetID = "1"; AMFPointer = "0"} #48bits <MCC><MNC><RegionID><AMFSetID><AMFPointer>
{MCC = "460"; MNC = "03"; RegionID = "128"; AMFSetID = "1"; AMFPointer = "1"} #48bits <MCC><MNC><RegionID><AMFSetID><AMFPointer>
);
PLMN_SUPPORT_LIST = (
{
MCC = "460"; MNC = "03"; TAC = 100; # YOUR PLMN CONFIG HERE
SLICE_SUPPORT_LIST = (
{SST = "1"; SD = "none"}, # YOUR NSSAI CONFIG HERE
{SST = "1"; SD = "12"} # YOUR NSSAI CONFIG HERE
)
}
);
INTERFACES:
{
# AMF binded interface for N1/N2 interface (NGAP)
NGAP_AMF:
{
INTERFACE_NAME = "wlp58s0"; # YOUR NETWORK CONFIG HERE
IPV4_ADDRESS = "read";
PORT = 38412; # YOUR NETWORK CONFIG HERE
PPID = 60; # YOUR NETWORK CONFIG HERE
};
# AMF binded interface for Nausf interface
NAUSF:
{
INTERFACE_NAME = "eth0"; # YOUR NETWORK CONFIG HERE
IPV4_ADDRESS = "172.16.200.13/24";
PORT = 8383; # YOUR NETWORK CONFIG HERE
};
# AMF binded interface for N11
N11:
{
INTERFACE_NAME = "wlp58s0"; # YOUR NETWORK CONFIG HERE
IPV4_ADDRESS = "read";
PORT = 8282; # YOUR NETWORK CONFIG HERE
SMF_INSTANCES_POOL = (
{SMF_INSTANCE_ID = 1; IPV4_ADDRESS = "172.16.200.15"; PORT = "8889"; VERSION = "v1"; SELECTED = "true"}, # YOUR SMF CONFIG HERE
{SMF_INSTANCE_ID = 2; IPV4_ADDRESS = "10.103.238.21"; PORT = "8181"; VERSION = "v1"; SELECTED = "false"} # YOUR SMF CONFIG HERE
);
};
};
AUTHENTICATION:
{
## MySQL mandatory options
MYSQL_server = "127.0.0.1"; # MySQL Server address
MYSQL_user = "root"; # Database server login
MYSQL_pass = "linux"; # Database server password
MYSQL_db = "OPENXG_DB"; # Your database name
## OP
OPERATOR_key = "63bfa50ee6523365ff14c1f45f88737d"; # OP key matching your database
RANDOM = "true";
};
NAS:
{
ORDERED_SUPPORTED_INTEGRITY_ALGORITHM_LIST = [ "NIA1" , "NIA1" , "NIA1" ];
ORDERED_SUPPORTED_CIPHERING_ALGORITHM_LIST = [ "NEA0" , "NEA1" , "NEA2" ];
};
};
MODULES =
{
NGAP_MESSAGE = (
{MSG_NAME = "NGSetupRequest"; ProcedureCode = 21; TypeOfMessage = "initialMessage"}
);
};
......@@ -1050,7 +1050,7 @@ asn_dec_rval_t CHOICE_decode_aper(
/* Set presence to be able to free it later */
_set_present_idx(st, specs->pres_offset, specs->pres_size, value + 1);
printf("test1130 decoding td->name %s set present %d\n", td->name, value + 1);
//printf("test1130 decoding td->name %s set present %d\n", td->name, value + 1);
elm = &td->elements[value];
if (elm->flags & ATF_POINTER) {
/* Member is a pointer to another structure */
......@@ -1169,32 +1169,32 @@ int CHOICE_print(
const asn_CHOICE_specifics_t* specs =
(const asn_CHOICE_specifics_t*) td->specifics;
unsigned present;
if (!sptr)
printf("test1130 sptr null\n");
else
printf("test1130 OK\n");
// if (!sptr)
// //printf("test1130 sptr null\n");
// else
//printf("test1130 OK\n");
if (!sptr) return (cb("<absent>", 8, app_key) < 0) ? -1 : 0;
/*
* Figure out which CHOICE element is encoded.
*/
present = _fetch_present_idx(sptr, specs->pres_offset, specs->pres_size);
printf("test1130 present %d, td->elements %d\n", present, td->elements_count);
//printf("test1130 present %d, td->elements %d\n", present, td->elements_count);
/*
* Print that element.
*/
if (present > 0 && present <= td->elements_count) {
asn_TYPE_member_t* elm = &td->elements[present - 1];
printf("test1130 td_name %s, element_name %s\n", td->name, elm->name);
//printf("test1130 td_name %s, element_name %s\n", td->name, elm->name);
const void* memb_ptr;
if (elm->flags & ATF_POINTER) {
memb_ptr = *(const void* const*) ((const char*) sptr + elm->memb_offset);
printf("test1130 memb_ptr1 (%p)\n", memb_ptr);
//printf("test1130 memb_ptr1 (%p)\n", memb_ptr);
if (!memb_ptr) return (cb("<absent>", 8, app_key) < 0) ? -1 : 0;
} else {
memb_ptr = (const void*) ((const char*) sptr + elm->memb_offset);
printf("test1130 memb_ptr2 (%p)\n", memb_ptr);
//printf("test1130 memb_ptr2 (%p)\n", memb_ptr);
}
/* Print member's name and stuff */
......@@ -1207,7 +1207,7 @@ int CHOICE_print(
return elm->type->op->print_struct(
elm->type, memb_ptr, ilevel, cb, app_key);
} else {
printf("test1130 casued by present = %d\n", present);
//printf("test1130 casued by present = %d\n", present);
return (cb("<absent>", 8, app_key) < 0) ? -1 : 0;
}
}
......
......@@ -932,10 +932,10 @@ int SEQUENCE_print(
asn_app_consume_bytes_f* cb, void* app_key) {
size_t edx;
int ret;
if (!sptr)
printf("test1130 memory not present %s \n", td->name);
else
printf("test1130 memory present %s \n", td->name);
// if (!sptr)
// //printf("test1130 memory not present %s \n", td->name);
// else
//printf("test1130 memory present %s \n", td->name);
if (!sptr) return (cb("<absent>", 8, app_key) < 0) ? -1 : 0;
/* Dump preamble */
......@@ -957,7 +957,7 @@ int SEQUENCE_print(
}
} else {
memb_ptr = (const void*) ((const char*) sptr + elm->memb_offset);
printf("test1130 element name(%s): mem_ptr(%p)\n", elm->name, memb_ptr);
//printf("test1130 element name(%s): mem_ptr(%p)\n", elm->name, memb_ptr);
}
/* Indentation */
......@@ -1532,7 +1532,7 @@ asn_dec_rval_t SEQUENCE_decode_aper(
*/
for (edx = 0; edx < td->elements_count; edx++) {
asn_TYPE_member_t* elm = &td->elements[edx];
printf("test1130 decoding element (%s)\n", elm->name);
//printf("test1130 decoding element (%s)\n", elm->name);
void* memb_ptr; /* Pointer to the member */
void** memb_ptr2; /* Pointer to that pointer */
#if 0
......
......@@ -789,10 +789,10 @@ int SET_OF_print(
const asn_anonymous_set_* list = _A_CSET_FROM_VOID(sptr);
int ret;
int i;
if (!sptr)
printf("test1130 set_of_printf sptr null\n");
else
printf("test1130 set_of_printf OK\n");
// if (!sptr)
// //printf("test1130 set_of_printf sptr null\n");
// else
//printf("test1130 set_of_printf OK\n");
if (!sptr) return (cb("<absent>", 8, app_key) < 0) ? -1 : 0;
/* Dump preamble */
......
......@@ -79,7 +79,7 @@ static asn_dec_rval_t uper_open_type_get_simple(
ASN__STACK_OVERFLOW_CHECK(ctx);
ASN_DEBUG("Getting open type %s...", td->name);
printf("test1130 decoding open type %s\n", td->name);
//printf("test1130 decoding open type %s\n", td->name);
do {
chunk_bytes = uper_get_length(pd, -1, 0, &repeat);
......@@ -410,7 +410,7 @@ static asn_dec_rval_t aper_open_type_get_simple(
printf("test0515 Getting open type %s...\n", td->name);
do {
printf("test1130 while repeat1(%d)\n", repeat);
//printf("test1130 while repeat1(%d)\n", repeat);
chunk_bytes = aper_get_length(pd, -1, -1, &repeat);
if (chunk_bytes < 0) {
FREEMEM(buf);
......@@ -431,7 +431,7 @@ static asn_dec_rval_t aper_open_type_get_simple(
ASN__DECODE_STARVED;
}
bufLen += chunk_bytes;
printf("test1130 while repeat2(%d)\n", repeat);
//printf("test1130 while repeat2(%d)\n", repeat);
} while (repeat);
// ASN_DEBUG("Getting open type %s encoded in %ld bytes", td->name,
......
......@@ -100,7 +100,7 @@ void IndividualSubscriptionDocumentApi::a_mf_status_change_subscribe_modfy_handl
// Getting the body param
SubscriptionData subscriptionData;
//SubscriptionData subscriptionData;
try {
nlohmann::json::parse(request.body()).get_to(subscriptionData);
......
......@@ -56,16 +56,6 @@ void IndividualSubscriptionDocumentApiImpl::a_mf_status_change_un_subscribe(cons
response.send(Pistache::Http::Code::Ok, "IndividualSubscriptionDocumentApiImpl::a_mf_status_change_un_subscribe API has not been implemented yet!\n");
}
}
}
void IndividualSubscriptionDocumentApiImpl::a_mf_status_change_un_subscribe(
const std::string& subscriptionId,
Pistache::Http::ResponseWriter& response) {
response.send(
Pistache::Http::Code::Ok,
"IndividualSubscriptionDocumentApiImpl::a_mf_status_change_un_subscribe "
"API has not been implemented yet!\n");
}
} // namespace api
} // namespace amf
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment