From 3afd143e1b4db95095cb2be3b20eeafdc22e885c Mon Sep 17 00:00:00 2001
From: Tien Thinh NGUYEN <Tien-Thinh.Nguyen@eurecom.fr>
Date: Thu, 3 Nov 2022 16:38:25 +0100
Subject: [PATCH] Disable Configuration Update Command

---
 src/amf-app/amf_n1.cpp | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/src/amf-app/amf_n1.cpp b/src/amf-app/amf_n1.cpp
index d9e695f0..f1af8a50 100644
--- a/src/amf-app/amf_n1.cpp
+++ b/src/amf-app/amf_n1.cpp
@@ -2760,6 +2760,14 @@ void amf_n1::registration_complete_handle(
     return;
   }
 
+  // TODO: Configuration Update Command message causes issue for UERANSIM
+  // (it does not accept the first PDU Session Establishment Accept, then it
+  // will send a second PDU Session Establishment Request and accept the second
+  // PDU Session Establishment Accept) Therefore, we disable this temporarily to
+  // make it work with UERANSIM
+  Logger::amf_n1().debug(
+      "Do not sending Configuration Update Command in this version!");
+  /*
   Logger::amf_n1().debug("Preparing Configuration Update Command message");
   // Encode Configuration Update Command
   auto configuration_update_command =
@@ -2798,6 +2806,7 @@ void amf_n1::registration_complete_handle(
         "Could not send ITTI message %s to task TASK_AMF_N2",
         dnt->get_msg_name());
   }
+  */
 }
 
 //------------------------------------------------------------------------------
-- 
2.26.2