-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding emergency registration procedure #1060
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -52,24 +52,29 @@ nas_5g::pdu_session_establishment_procedure::pdu_session_establishment_procedure | |
{} | ||
|
||
srsran::proc_outcome_t nas_5g::pdu_session_establishment_procedure::init(const uint16_t pdu_session_id_, | ||
const pdu_session_cfg_t& pdu_session_cfg) | ||
const pdu_session_cfg_t& pdu_session_cfg, | ||
const bool emergency_pdu_session_) | ||
{ | ||
// Get PDU transaction identity | ||
transaction_identity = parent_nas->allocate_next_proc_trans_id(); | ||
pdu_session_id = pdu_session_id_; | ||
parent_nas->send_pdu_session_establishment_request(transaction_identity, pdu_session_id, pdu_session_cfg); | ||
|
||
//Check if emergency registration is enabled | ||
emergency_pdu_session = emergency_pdu_session_; | ||
|
||
return srsran::proc_outcome_t::yield; | ||
} | ||
|
||
srsran::proc_outcome_t nas_5g::pdu_session_establishment_procedure::react( | ||
const srsran::nas_5g::pdu_session_establishment_accept_t& pdu_session_est_accept) | ||
{ | ||
// TODO check the pdu session values | ||
if (pdu_session_est_accept.dnn_present == false) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. leave the if maybe but add There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I added a new member to the nas_5g_procedure called emegency_pdu_session that was intialized during init function from the emergency_registration argument. |
||
//TODO check the pdu session values | ||
if(pdu_session_est_accept.dnn_present == false and not emergency_pdu_session){ | ||
logger.warning("Expected DNN in PDU session establishment accept"); | ||
return proc_outcome_t::error; | ||
} | ||
} | ||
|
||
if (pdu_session_est_accept.pdu_address_present == false) { | ||
logger.warning("Expected PDU Address in PDU session establishment accept"); | ||
return proc_outcome_t::error; | ||
|
@@ -98,4 +103,4 @@ srsran::proc_outcome_t nas_5g::pdu_session_establishment_procedure::step() | |
return srsran::proc_outcome_t::success; | ||
} | ||
|
||
} // namespace srsue | ||
} // namespace srsue |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
indent wrong
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed