@@ -43,11 +43,11 @@ ngap_impl::ngap_impl(ngap_configuration& ngap_cfg_,
4343 ctrl_exec(ctrl_exec_),
4444 ev_mng(timer_factory{task_sched.get_timer_manager (), ctrl_exec})
4545{
46- context.gnb_id = ngap_cfg_.gnb_id ;
47- context.ran_node_name = ngap_cfg_.ran_node_name ;
48- context.plmn = ngap_cfg_.plmn ;
49- context.tac = ngap_cfg_.tac ;
50- context.ue_context_setup_timer = ngap_cfg_.ue_context_setup_timer ;
46+ context.gnb_id = ngap_cfg_.gnb_id ;
47+ context.ran_node_name = ngap_cfg_.ran_node_name ;
48+ context.plmn = ngap_cfg_.plmn ;
49+ context.tac = ngap_cfg_.tac ;
50+ context.ue_context_setup_timeout_s = ngap_cfg_.ue_context_setup_timeout_s ;
5151}
5252
5353// Note: For fwd declaration of member types, dtor cannot be trivial.
@@ -120,12 +120,15 @@ void ngap_impl::handle_initial_ue_message(const cu_cp_initial_ue_message& msg)
120120 fill_asn1_initial_ue_message (init_ue_msg, msg, context);
121121
122122 // Start UE context setup timer
123- ue_ctxt.ue_context_setup_timer .set (context.ue_context_setup_timer , [this , msg](timer_id_t /* tid*/ ) {
123+ ue_ctxt.ue_context_setup_timer .set (context.ue_context_setup_timeout_s , [this , msg](timer_id_t /* tid*/ ) {
124124 on_ue_context_setup_timer_expired (msg.ue_index );
125125 });
126126 ue_ctxt.ue_context_setup_timer .run ();
127127
128- logger.info (" ue={} ran_ue_id={}: Sending InitialUeMessage" , msg.ue_index , ue_ctxt.ue_ids .ran_ue_id );
128+ logger.info (" ue={} ran_ue_id={}: Sending InitialUeMessage (timeout={}s)" ,
129+ msg.ue_index ,
130+ ue_ctxt.ue_ids .ran_ue_id ,
131+ ue_ctxt.ue_context_setup_timer .duration ().count ());
129132
130133 // Forward message to AMF
131134 ngap_notifier.on_new_message (ngap_msg);
@@ -915,7 +918,9 @@ void ngap_impl::on_ue_context_setup_timer_expired(ue_index_t ue_index)
915918 if (ue_ctxt_list.contains (ue_index)) {
916919 ngap_ue_context& ue_ctxt = ue_ctxt_list[ue_index];
917920
918- logger.warning (" ue={}: UE context setup timer expired. Releasing UE from DU" , ue_index);
921+ logger.warning (" ue={}: UE context setup timer expired after {}s. Releasing UE from DU" ,
922+ ue_index,
923+ ue_ctxt.ue_context_setup_timer .duration ().count ());
919924
920925 auto * ue = ue_manager.find_ngap_ue (ue_ctxt.ue_ids .ue_index );
921926 srsran_assert (ue != nullptr ,
0 commit comments