Commit dacb523b authored by Tien Thinh NGUYEN's avatar Tien Thinh NGUYEN

fix issue for SD

parent d6e36d7d
......@@ -383,8 +383,7 @@ void amf_n2::handle_itti_message(
// encode NG SETUP FAILURE MESSAGE and send back
uint8_t* buffer = (uint8_t*) calloc(1, BUFFER_SIZE_1024);
NGSetupFailureMsg ngSetupFailure;
ngSetupFailure.setCauseRadioNetwork(
Ngap_CauseRadioNetwork_unspecified, Ngap_TimeToWait_v5s);
ngSetupFailure.set(Ngap_CauseRadioNetwork_unspecified, Ngap_TimeToWait_v5s);
int encoded =
ngSetupFailure.encode2Buffer((uint8_t*) buffer, BUFFER_SIZE_1024);
......
......@@ -94,8 +94,7 @@ void NGSetupFailureMsg::set(
}
//------------------------------------------------------------------------------
void NGSetupFailureMsg::setCauseRadioNetwork(
const e_Ngap_CauseRadioNetwork& cause_value) {
void NGSetupFailureMsg::set(const e_Ngap_CauseRadioNetwork& cause_value) {
cause.setChoiceOfCause(Ngap_Cause_PR_radioNetwork);
cause.setValue(cause_value);
addCauseIE();
......
......@@ -39,7 +39,7 @@ class NGSetupFailureMsg : public NgapMessage {
void set(
const e_Ngap_CauseRadioNetwork& cause_value,
const e_Ngap_TimeToWait& time_to_wait);
void setCauseRadioNetwork(const e_Ngap_CauseRadioNetwork& cause_value);
void set(const e_Ngap_CauseRadioNetwork& cause_value);
bool getCauseRadioNetwork(e_Ngap_CauseRadioNetwork&);
void setCauseTransport(
......
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