Commit 4a6a77ae authored by Tien-Thinh Nguyen's avatar Tien-Thinh Nguyen

Fix issue for UE Radio Capability

parent 2668e58a
......@@ -728,12 +728,16 @@ void amf_n2::handle_itti_message(itti_initial_context_setup_request& itti_msg) {
bdestroy(itti_msg.nas);
bdestroy(itti_msg.kgnb);
if (itti_msg.is_sr or itti_msg.is_pdu_exist) {
bstring ueCapability = gc.get()->ue_radio_cap_ind;
uint8_t* uecap = (uint8_t*) calloc(1, blength(ueCapability) + 1);
memcpy(uecap, (uint8_t*) bdata(ueCapability), blength(ueCapability));
uecap[blength(ueCapability)] = '\0';
msg->setUERadioCapability(uecap, (size_t) blength(ueCapability));
free(uecap);
// Set UE RAdio Capability if available
if (gc.get()->ue_radio_cap_ind) {
bstring ueCapability = gc.get()->ue_radio_cap_ind;
uint8_t* uecap = (uint8_t*) calloc(1, blength(ueCapability) + 1);
memcpy(uecap, (uint8_t*) bdata(ueCapability), blength(ueCapability));
uecap[blength(ueCapability)] = '\0';
msg->setUERadioCapability(uecap, (size_t) blength(ueCapability));
free(uecap);
}
if (itti_msg.is_sr)
Logger::amf_n2().debug("Encoding parameters for Service Request");
else
......@@ -741,6 +745,7 @@ void amf_n2::handle_itti_message(itti_initial_context_setup_request& itti_msg) {
"Encoding parameters for Initial Context Setup Request");
if (itti_msg.is_pdu_exist) {
// TODO: with multiple PDU Sessions
std::vector<PDUSessionResourceSetupRequestItem_t> list;
PDUSessionResourceSetupRequestItem_t item;
item.pduSessionId = itti_msg.pdu_session_id;
......
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