arch: DB schema Changes (#796)

- New function : NSSF
- New feature : SMF selection
This commit is contained in:
Sukchan Lee 2021-03-08 21:25:09 +09:00
parent c6bfbed922
commit 9af4268bab
691 changed files with 40727 additions and 18985 deletions

View file

@ -59,13 +59,11 @@ cJSON *OpenAPI_deregistration_data_convertToJSON(OpenAPI_deregistration_data_t *
goto end;
}
if (!deregistration_data->access_type) {
ogs_error("OpenAPI_deregistration_data_convertToJSON() failed [access_type]");
goto end;
}
if (cJSON_AddStringToObject(item, "accessType", OpenAPI_access_type_ToString(deregistration_data->access_type)) == NULL) {
ogs_error("OpenAPI_deregistration_data_convertToJSON() failed [access_type]");
goto end;
if (deregistration_data->access_type) {
if (cJSON_AddStringToObject(item, "accessType", OpenAPI_access_type_ToString(deregistration_data->access_type)) == NULL) {
ogs_error("OpenAPI_deregistration_data_convertToJSON() failed [access_type]");
goto end;
}
}
if (deregistration_data->pdu_session_id) {
@ -100,18 +98,15 @@ OpenAPI_deregistration_data_t *OpenAPI_deregistration_data_parseFromJSON(cJSON *
dereg_reason_local_nonprim = OpenAPI_deregistration_reason_parseFromJSON(dereg_reason);
cJSON *access_type = cJSON_GetObjectItemCaseSensitive(deregistration_dataJSON, "accessType");
if (!access_type) {
ogs_error("OpenAPI_deregistration_data_parseFromJSON() failed [access_type]");
goto end;
}
OpenAPI_access_type_e access_typeVariable;
if (!cJSON_IsString(access_type)) {
ogs_error("OpenAPI_deregistration_data_parseFromJSON() failed [access_type]");
goto end;
if (access_type) {
if (!cJSON_IsString(access_type)) {
ogs_error("OpenAPI_deregistration_data_parseFromJSON() failed [access_type]");
goto end;
}
access_typeVariable = OpenAPI_access_type_FromString(access_type->valuestring);
}
access_typeVariable = OpenAPI_access_type_FromString(access_type->valuestring);
cJSON *pdu_session_id = cJSON_GetObjectItemCaseSensitive(deregistration_dataJSON, "pduSessionId");
@ -133,7 +128,7 @@ OpenAPI_deregistration_data_t *OpenAPI_deregistration_data_parseFromJSON(cJSON *
deregistration_data_local_var = OpenAPI_deregistration_data_create (
dereg_reason_local_nonprim,
access_typeVariable,
access_type ? access_typeVariable : 0,
pdu_session_id ? pdu_session_id->valuedouble : 0,
new_smf_instance_id ? ogs_strdup(new_smf_instance_id->valuestring) : NULL
);