mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-05 15:24:14 +00:00
[5GC] Added BSF(Binding Support Function)
This commit is contained in:
parent
611986794b
commit
fe89f7cd11
293 changed files with 24988 additions and 1507 deletions
|
|
@ -9,7 +9,7 @@ OpenAPI_amf_non3_gpp_access_registration_t *OpenAPI_amf_non3_gpp_access_registra
|
|||
char *supported_features,
|
||||
int purge_flag,
|
||||
char *pei,
|
||||
OpenAPI_ims_vo_ps_t *ims_vo_ps,
|
||||
OpenAPI_ims_vo_ps_e ims_vo_ps,
|
||||
char *dereg_callback_uri,
|
||||
char *amf_service_name_dereg,
|
||||
char *pcscf_restoration_callback_uri,
|
||||
|
|
@ -58,7 +58,6 @@ void OpenAPI_amf_non3_gpp_access_registration_free(OpenAPI_amf_non3_gpp_access_r
|
|||
ogs_free(amf_non3_gpp_access_registration->amf_instance_id);
|
||||
ogs_free(amf_non3_gpp_access_registration->supported_features);
|
||||
ogs_free(amf_non3_gpp_access_registration->pei);
|
||||
OpenAPI_ims_vo_ps_free(amf_non3_gpp_access_registration->ims_vo_ps);
|
||||
ogs_free(amf_non3_gpp_access_registration->dereg_callback_uri);
|
||||
ogs_free(amf_non3_gpp_access_registration->amf_service_name_dereg);
|
||||
ogs_free(amf_non3_gpp_access_registration->pcscf_restoration_callback_uri);
|
||||
|
|
@ -111,13 +110,7 @@ cJSON *OpenAPI_amf_non3_gpp_access_registration_convertToJSON(OpenAPI_amf_non3_g
|
|||
}
|
||||
}
|
||||
|
||||
cJSON *ims_vo_ps_local_JSON = OpenAPI_ims_vo_ps_convertToJSON(amf_non3_gpp_access_registration->ims_vo_ps);
|
||||
if (ims_vo_ps_local_JSON == NULL) {
|
||||
ogs_error("OpenAPI_amf_non3_gpp_access_registration_convertToJSON() failed [ims_vo_ps]");
|
||||
goto end;
|
||||
}
|
||||
cJSON_AddItemToObject(item, "imsVoPs", ims_vo_ps_local_JSON);
|
||||
if (item->child == NULL) {
|
||||
if (cJSON_AddStringToObject(item, "imsVoPs", OpenAPI_ims_vo_ps_ToString(amf_non3_gpp_access_registration->ims_vo_ps)) == NULL) {
|
||||
ogs_error("OpenAPI_amf_non3_gpp_access_registration_convertToJSON() failed [ims_vo_ps]");
|
||||
goto end;
|
||||
}
|
||||
|
|
@ -283,9 +276,13 @@ OpenAPI_amf_non3_gpp_access_registration_t *OpenAPI_amf_non3_gpp_access_registra
|
|||
goto end;
|
||||
}
|
||||
|
||||
OpenAPI_ims_vo_ps_t *ims_vo_ps_local_nonprim = NULL;
|
||||
OpenAPI_ims_vo_ps_e ims_vo_psVariable;
|
||||
|
||||
ims_vo_ps_local_nonprim = OpenAPI_ims_vo_ps_parseFromJSON(ims_vo_ps);
|
||||
if (!cJSON_IsString(ims_vo_ps)) {
|
||||
ogs_error("OpenAPI_amf_non3_gpp_access_registration_parseFromJSON() failed [ims_vo_ps]");
|
||||
goto end;
|
||||
}
|
||||
ims_vo_psVariable = OpenAPI_ims_vo_ps_FromString(ims_vo_ps->valuestring);
|
||||
|
||||
cJSON *dereg_callback_uri = cJSON_GetObjectItemCaseSensitive(amf_non3_gpp_access_registrationJSON, "deregCallbackUri");
|
||||
if (!dereg_callback_uri) {
|
||||
|
|
@ -419,7 +416,7 @@ OpenAPI_amf_non3_gpp_access_registration_t *OpenAPI_amf_non3_gpp_access_registra
|
|||
supported_features ? ogs_strdup(supported_features->valuestring) : NULL,
|
||||
purge_flag ? purge_flag->valueint : 0,
|
||||
pei ? ogs_strdup(pei->valuestring) : NULL,
|
||||
ims_vo_ps_local_nonprim,
|
||||
ims_vo_psVariable,
|
||||
ogs_strdup(dereg_callback_uri->valuestring),
|
||||
amf_service_name_dereg ? ogs_strdup(amf_service_name_dereg->valuestring) : NULL,
|
||||
pcscf_restoration_callback_uri ? ogs_strdup(pcscf_restoration_callback_uri->valuestring) : NULL,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue