X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2Fcu_stub%2Fcu_stub.c;h=17c18ad580296f51bdb607f6053639c4c49323f6;hb=ff0c6fbd56fc24b9c286dc6444e1e0fbe8871625;hp=cd44bf9e6b5be873c5f31b9e90c84cd2652690d2;hpb=500ba7b760f08ed1967fa7c36ca013675d1abfd5;p=o-du%2Fl2.git diff --git a/src/cu_stub/cu_stub.c b/src/cu_stub/cu_stub.c index cd44bf9e6..17c18ad58 100644 --- a/src/cu_stub/cu_stub.c +++ b/src/cu_stub/cu_stub.c @@ -292,11 +292,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); @@ -358,6 +358,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; + } } } /**********************************************************************