X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2Fcu_stub%2Fcu_stub.c;h=1a7fe9c57026c57cb8268c195fe617237c0015f1;hb=b5a77f556b20a2acd7d653367fdcac030461f85b;hp=31515a4c6b50be6dcb05453908132795d3bdf41e;hpb=9c4801c94d7798cc638a6b112d514e68c695f20a;p=o-du%2Fl2.git diff --git a/src/cu_stub/cu_stub.c b/src/cu_stub/cu_stub.c index 31515a4c6..1a7fe9c57 100644 --- a/src/cu_stub/cu_stub.c +++ b/src/cu_stub/cu_stub.c @@ -285,11 +285,11 @@ void *cuConsoleHandler(void *args) if(ch == 'd') { - /* Change #if 0 to #if 1 to take input from user */ + /* Change #if 0 to #if 1 to take input from user */ #if 0 DU_LOG("\n EGTP --> : Enter TEID id(1..10) where DL Data to be sent\n"); scanf("%d",&teId); - + if(teId > MAX_TEID || teId < MIN_TEID) { DU_LOG("\nERROR --> EGTP : TEID(%x) OUT Of Range",teId); @@ -351,6 +351,23 @@ void *cuConsoleHandler(void *args) initiateInterDuHandover(sourceDuId, targetDuId, ueId); } + /* Start Idle mode paging when 'p' is received from console input */ + else if(ch == 'p') + { + uint64_t sTmsi = 0; + uint8_t duId = 0; + + DU_LOG("\nEnter DU ID on which this UE to be pagged"); + scanf("%d", &duId); + DU_LOG("\nEnter 5g-S-TMSI"); + scanf("%lu", &sTmsi); + + if(BuildAndSendPagingMsg(sTmsi, duId) != ROK) + { + DU_LOG("\nERROR --> EGTP: Failed to build and send paging message for 5gsTmsi[%lu]\n", sTmsi); + } + continue; + } } } /**********************************************************************